Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
TIMER
Variable = TIMER Parameter1 Parameter2 Parameter3
The script associated to the variable is run periodically, as indicated in Parameter3 (1/10 secs).
For each loop (the first one is run once the time indicated by Parameter3 has passed) the variable value increases/decreases as indicated by Parameter2. The process ends when the variable value reaches Parameter1.
Parameter1 : Variable, real constant or integer constant. Final value.
Parameter2 : Variable, real constant or integer constant. Increment/Decement.
Parameter3 : Variable, real constant or integer constant. Recurrence.
Example:
V9000 = TIMER 1000 5 10
[== BASIC ==]
for I = 0 to 10
pause(100)
next I
[== SIOC ==]
Var 0001, name I
Var 0002, name change
{
&I = 0
&I = TIMER 10 ,1 ,100
}
[== basic ==]
for I = 10 to 0 step -1
pause (100)
next I
[== SIOC ==]
Var 0001, name I
Var 0002, name change
{
&I = 10
&I = TIMER 0 ,-1 ,100
}
[== SIOC ==]
Var 0001, name I, Value 10 // initialisation de I à 10
Var 0002, name change
{
IF &I = 10 // ne se lance que si I est égal à 10
{
&I = 0
&I = TIMER 10 ,1 ,100
}
}