gosub

From Arx Libertatis Wiki
Revision as of 03:24, 16 April 2020 by Ds (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The gosub script command is used to jump to a label and add a return point. Unlike goto, gosub will push the location of the command following it on the stack of return positions.

Usage

gosub <label>

Context: Ignored

Parameters:

ParameterTypeDescription
label label The name of the label to jump to