lRS-SO MODEL III
Statement/Functions Examples
Section 2
FOR var =exp TO exp STEP exp
Page
Opena FOR-NEXT loop.
FOR
1=1
TO
50
STEP
1.5
4/9
STEPis optional;
if
not used,
FOR
MO/o
=
JO/o
TO
KO/o
- 1
increment
of
one is used.
NEXT variable
Close FOR-NEXT loop.
NEXT
4/9
Variable may be omitted.
NEXT I
To
close nested loops, a
NEXTI,J,K
variable list may be used.
SeeChapter4.
ERROR (code)
Simulatethe error specified ERROR(14)
4/12
by
code (See ErrorCode
Table).
ONERROROOTO line-number
If
an erroroccurs in
ON
ERROR
GOTO
999
4/12
subsequent program lines,
branch to errorroutine
beginning at
line-number.
RESUMEn
Return from errorroutine
RESUME
4/3
to line specified by
n.
If
n
RESUMEO
is zero
or
not specified, return
RESUME
100
to statement containing error.
RESUME
NEXT
If
n is "NEXT", return to
statementfollowing error-
statement.
RANDOM
Reseeds random number
RANDOM
7/4
generator.
REM
REMark
indicator; ignore rest
REM
A
IS
AL
TITUDE
4/14
of
line.
Al10