English
Language : 

NSB8 Datasheet, PDF (47/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
grifo®
FOR
STATEMENT:
FOR <control variable> = <initial value> TO <limit value>
FOR <control variable> = <initial value> TO <limit value> STEP <step value>
ACTION:
Begins a FOR NEXT loop.
EXAMPLES:
15 FOR J=1 TO 10 \ REM Will cause 10 iterations.
25 FOR Q(7)=3 TO 1 \ REM No looping will occur.
40 FOR A=B*7 TO SQRT (X)
50 FOR X=.1 TO 1.3 STEP .1
90 FOR J=3 TO 1 STEP -1
70 FOR I=10+J TO 100+J STEP D(X)
REMARKS:
For a complete description of the FOR NEXT loop, see section FOR NEXT LOOP.
The initial, limit and optional step values may be any numeric expressions.
If the initial value is greater than the limit value and step is positive, or if initial value is less than the
limit and step is negative, the body of the loop will not be executed.
ERROR MESSAGES:
MISSING NEXT ERROR
BASIC could not find a NEXT statement to associate with the FOR.
SEE ALSO:
Section FOR NEXT LOOP
Statement NEXT
Statement EXIT
NSB8
Rel. 5.10
Page 35