For var := start To end Do command

 For var := start To end [Do]
   commands
 Next

Counting loop. The variable var, which must have been declared before, starts at start and counts up in steps of 1 until it reaches end. For each value, the command (or command list) is executed.

For example,

 For i:=1 To 5 Do Print i

prints the numbers 1, 2, 3, 4 and 5.

Since: PCC 1.0.12, PCC2 1.99.9

See also: Break, Continue, ForEach, Elementary Commands