ON GOTO GOSUB label1 [, …, labelN]

Causes a branch to one of a list of labels.

p.. A numeric expression in the range 0 to 255. Upon execution of the ON…GOTO command (or ON…GOSUB), BASIC branches to the nth item in the list of labels that follows the keyword GOTO (or GOSUB).