User`s manual

A-10
Statement/Functions Examples Page
NEXT
variable
Close FOR-NEXT loop. Variable
may be omitted. To close nested
loops, a variable list may be
used. See Chapter 4.
NEXT
NEXT I
NEXT I,J,K
4/10-12
ERROR
(code)
Simulate the error specified by
code (See Error Code Table).
ERROR (14)
4/ 13
ON ERROR GOTO
line-number
If an error occurs in subsequent
program lines, branch to error
routine beginning at line-
number.
ON ERROR GOTO 999
4/13
RESUME
n
Return from error routine to line
specified by
n
. If
n
is zero or not
specified, return to statement
containing error. If
n
is "NEXT",
return to statement following
error-statement.
RESUME
RESUME 0
RESUME 100
RESUME NEXT
4/14
RANDOM
Reseeds random number
generator.
RANDOM
7/4
REM
REMark indicator; ignore rest of
line.
REM A IS ALTITUDE
4/15
(Tests - Conditional Statements)
IF
exp-1
THEN
statement-1
ELSE
statement-2
Tests
exp-1
: If True, execute
statement-1 then jump to next
program line (unless statement-
1 was a GOTO). If
exp-1
is False,
jump directly to ELSE
statement and execute
subsequent statements.
IF A=0 THEN PRINT "ZERO"
ELSE PRINT "NOT ZERO"
4/15-17