Programmer Guide/Command Reference/GOTO

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 09:40, 1 June 2015 by Jw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
GOTO label [fallback_label]

Continue macro execution at the label label. With the argument fallback_label a second label can be specified which is used as the target should the primary target, label, be undefined. This feature is unique to the STx programming language.

Often, the GOTO command is used with a variable label to implement a switch-like control structure. In this case, fallback_label has the role of the default switch clause.

If both label, and default_label, are undefined, an error is generated and macro execution terminates.

Navigation menu

Personal tools