122
CHAPTER
6
Command
Reference
RETURN
®
Function:
Provides a return from the subroutine
to
the main program.
Explanation:
Returns
to
a statement located
just
after the statement which called the sub-
routine.
ON
Branch condition
GQSU
B [Branched location] ®
Numeric expression [ , [Branched location] ] *
h d 1
. { Line No.
* Branc e ocatlon # N
program area
o.
Function:
Branches
to
a subroutine according
to
a branch condition.
Parameter:
Branching condition:
Line No.:
Program area No.:
Explanation:
Numeric expression.
Values below the decimal point are discarded.
1
to
9999.
0
to
9.
1) Performs a subroutine branching by the integer part
of
the value in a branch
condition expression. Branched locations are a
ll
ocated sequentially according
to
the value
of
the expression.
ON
B GOSUB 1000, 2000, 3000· · · · · ·
B = I B
=2
B = 3
2) When the value
of
the expression
is
smaller than 1 or an appropriate branch-
ing location does
not
exist, the
next
statement
is
executed without branching.
3) As many branching locations
as
can fit in one line can be written.