Documentation | Help File | Scripter Studio | Pascal Language | for statements
Scripter Studio supports for statements with the following syntax: for counter := initial_value to final_value do statement ;. for statement sets counter to the initial_value, repeats execution of statement (or block) and increments value of counter until counter reaches the final_value. Examples:
SCRIPT 1:
for c := 1 to 10 do a := a + c ;
SCRIPT 2:
for i := a to b do begin j := i ^ 2 ; sum := sum + j ; end ;