The EGL for statement governs a loop that runs until a counter reaches a specified value. You provide an initial value for the counter, a limit for the counter, and an optional amount that EGL uses to automatically increase or reduce the value of the counter after completing each loop. The keyword end marks the close of the forstatement.

EGL statements within the for statement can change the value of finish.
EGL statements in the for statement can change the value of delta.
If you do not specify a delta value, EGL assumes a value a 1.
In the following example, the counter i is declared within the for statement:
sum = 0;
// adds 10 values to sum
for (i int from 1 to 10 by 1)
sum = inputArray[i] + sum;
end