
ON <expression> GOTO <list of line numbers>
'ON <expression> GOSUB <list of line numbers>
SX, Extended, Disk
To branch
to
one
of
several
specified
line
numbers, depending on the value returned when an
expression is evaluated.
The value of <expression> determines
number
in
the list will be used for
For example, if the value is
three,
line number in the list will be the
of the branch.
(If the value is a
the fractional portion is rounded.)
which line
branching.
the
third
destination
non-integer,
In the ON •••GOSUB statement, each line number in
the
list
must
be
the
first line number of a
subroutine.
If the value of <expression> is
negative,
zero
or greater than the number of items in the list,
an "Illegal function call" error occurs.
Summary of Contents for Basic Interpreter Basic 80
Page 1: ...5IA iC intc tit tcl c t ...
Page 2: ......
Page 6: ... ...
Page 10: ......
Page 26: ......
Page 33: ...2 5 Intentially left blank ...
Page 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Page 112: ......
Page 136: ......
Page 140: ......
Page 160: ......
Page 165: ......
Page 166: ......
Page 174: ......
Page 176: ......
Page 182: ......
Page 184: ......
Page 190: ......