For loop

From GMpedia.org Wiki

Jump to: navigation, search

The for loop is a type of loop which repeats an action a number of times. The number is either input by the programmer or a predefined variable, meaning it must be defined before the loop begins.

[edit] Syntax

Psuedo code syntax:

FOR I=<X> TO <Y>
<STATEMENTS>
NEXT I

Where X is the number that I begins at and Y is the number where the loop stops. Both X and Y could be variables.

[edit] See Also

Personal tools