Home > lang > gosub 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
GOSUB
Since 3.1 version

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

Miscellaneous Control Structures, Labels