From TVPaintWiki
Jump to: navigation, search

<<<George<<<George Language Reference

  FOR index = start to end [STEP step]

Executes a series of instructions as long as index is less than or equal to end (given after TO). Index is initialized with a value equal to start. By default, index is incremented by 1 in each loop, and is compared with end. You can define the increment step using the STEP instruction. If STEP is negative, the loop will continue for as long as index remains greater than or equal to end.

Example :

// Count up to 10
FOR i = 1 TO 10