>>13786709the syntax in c-style languages is
for(x; y; z;){
[code:lit];
}
where,
x is a statement that is executed during the first iteration
[code:lit] executes each iteration
y is a boolean expression, if y is true then the loop repeats, if y is false the loop ends
z is a statement that executes after each iteration of the loop
so a simple for loop would be:
for(i = 0; i <= 10; i++){
print(i)
}
and then it'd print out:
0
1
2
3
4
5
6
7
8
9
10