This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / Flow Control  /
Label

  • Label[ tag ] represents a point in a compound expression to which control can be transferred using Goto.
  • Label must appear as an explicit element of a CompoundExpression object.
  • Label has attribute HoldFirst.
  • See the Mathematica book: Section 2.5.9.
  • See also: Catch.

    Further Examples

    This goes on looping until q exceeds 6.

    In[1]:=

    2

    3

    4

    5

    In[2]:=