lang • gosub

GOSUB

Since 3.1

GOSUB Label

Jump to a label declared elsewhere in the function. Then, if a RETURN instruction is encountered, the program comes back to run the code just after the GOSUB instruction.

GOSUB calls can be imbricated, until the memory is exhausted.

The same restrictions as GOTO apply

See also