for
for — checks a condition and performs a statement.
for (setup ; condition ; iteration) statement
setupAn iteration setup, usually a variable with an initial value.
conditionThe condition to test.
iterationAny Gamma expression, usually used to increment the variable
in setup.
statementAny Gamma statement.
The value of the condition.
This statement is essentially identical to a for
loop in C, and the syntax is the same. It checks a condition iteratively,
and executes a statement when the condition is true.
This for loop counts from 0 to 10, printing out the
value of i as it loops.
for (i=0;i<=10;i++)
{
princ("value of i: ", i, "\n");
}