ON nbr GOTO | GOSUB target[,target, target,…]
ON either branches (GOTO) or calls a subroutine (GOSUB) based on the rounded value of variable; if it is 1, the first target is called, if 2, the second target is called, etc.
Target can be a line number or a label.
See also:
GOSUB
GOTO
RETURN
Leave a Reply