for ( %start; %while; %mod )
{
// Functions
}
%start is the declaration of the intitial value for the variable
%while is the condition for the loop to continue
%mod is how the variable is modified after each loop
for ( %i = 1; %i <= 10; %i++ )
{
echo( %i );
}
That would have %i start as one.
While it's less than or equal to ten, perform the function(s):
- Display the value of %i in the console
Increment %i by one after each loop
1
2
3
4
5
6
7
8
9
10