Main sections
TO
FOR counter# = start# TO end# |STEP steps#|
    ...
NEXT
The TO statement tells a FOR loop what value it has to count to (end#). counter# will initially take the value of start# and count until it reaches end#.
Example:
 
FOR i=0 TO 10 STEP 2
    PRINT i, 100, 32*i
NEXT
SHOWSCREEN
MOUSEWAIT
Output :
0
2
4
6
8
10

