Mathematica 9 is now available
 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]:=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.