ON GOSUB

Seit 3.2

ON Expression GOSUB Label0 [ , Label1 ... ]

Jump to one of the specified labels and comes back.

Expression must be an integer value that gives which label to choose. If Expression is zero, then the first label is chosen, if Expression is one, then the second label is chosen. And so on...

If Expression is negative or greater or equal than the number of labels, then the instruction is silently ignored.

See also