PickBASIC / FlashBASIC
on...goto statement
.mdThe on...goto statement transfers control to the line within the FlashBASIC or BASIC program that begins with the specified statement label, according to the positional value of the expression referenced by exp. The syntax can also be specified as on...go to...(allowing a space between go and to).
Syntax
Description
The on...goto is identical to the on...gosub, except there is no return required.
Note: If the exp evaluates to a number less than 1, or to a number
greater than the number of statement labels, then control passes to
the next executable statement following the on...goto.