for <intvar> <first> <last> ... ... next
Repeats the statements between "for" and "next" until the integer variable <intvar> has the value <last> at the 'next' statement.
The initial value of the <intvar> is <first>. If <last> is greater than <first>, <intvar> is incremented by 1 at the 'next' line. If <last> is less than <first>, <intvar> is decremented by 1 at the 'next' line.
; Repeat ten times. for i 1 10 sendln 'abc' next ; Repeat five times. for i 5 1 sendln 'abc' next