Main sections
STEP
FOR counter# = start# TO end# |STEP steps#|
...
NEXT
STEP (if specified) tells a FOR loop how much to increment or decrement counter# by for each execution of the FOR loop. If steps# is not defined, steps# defaults to +1.
Sample:
FOR i=0 TO 10 STEP 2
PRINT i, 100, 32*i
NEXT
SHOWSCREEN
MOUSEWAIT
Output :
0
2
4
6
8
10