Using Dynamic variables

I would like to know how to do this sum t+anynumber , where t is “Dynamic[Clock[{0, 20, 1}, 20]]”
I have realized that t is not considered a number (NumericQ[t] is False).

UsingDynamic.nb (2.82 KB)

Hi Ana,

I think the Dynamic has to include the sum. e.g.

a = 100;
Dynamic[Clock[{0, 20, 1}, 20] + a]

It works..Thank you.. Could you help me to calculate “Cos[Dynamic[Clock[{0, 20, 1}, 20]]”. I have also tried Dynamic[Cos[Clock[{0, 20, 1}, 20]]] and did not work.

Hi, please read SE: Programming with Dynamic for deeper understanding.