Programmer Guide/Command Reference/GOTO

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 17:29, 23 March 2011 by Christian (talk | contribs) (Created page with '<code>GOTO <var>label</var> [<var>default_label</var>]</code> :Continue macro execution at the label <var>label</var>. With the argument <var>default_label</var> a second label c…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

GOTO label [default_label]

Continue macro execution at the label label. With the argument default_label a second label can be specified which is used as the target if label is not defined. The GOTO command with a variable label is often used to implement a switch-like control structure. In this case, default_label is the name of the default switch-clause. If label (and default_label) is not defined, an error is generated and the macro is terminated.

Navigation menu

Personal tools