The 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).
on exp goto statement.label{, statement.label...} on exp goto statement.label,..., statement.label, statement.label
The on...goto is identical to the on...gosub, except there is no return required.
This is an indexed branch in the single-line format.
on response goto 100,200,300,400,500
This is an indexed branch in multiline format.
on response goto 100,200,300, 400,500,600, 700,800,900