### 5.107 TimerMac

• TimerMac( <body of the macro to execute> ).
• Description: that command create a macro attached to the timer. The argument is interpreted as a string and must correspond to the macro body (it will be called TimerMac). For performances reasons, it is preferable to avoid too many calls to other macros from this one. That function returns 1 if the macro is valid, 0 if an error occurs. Warning, executing TimerMac don’t start the timer! Use the Timer command to do that.
• Exemple(s): let be $A$ a global variable (a point), and dotA a graphical element that draws the point. Here is a command that moves $A$:
[TimerMac("[Inc(A,0.1), if Re(A)>5 then Timer(0) else ReCalc(dotA) fi]"), A:=-5, Timer(10)]