Vector Basic Interpreter Basic 80 Reference Manual - page 81
of
190
ON
'ON
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
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
negative,
zero
or greater than the number of items in the list,
an "Illegal function call" error occurs.