This is documentation for Mathematica 5, 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 /


FilledSmallSquare Break[ ] exits the nearest enclosing Do, For or While.

FilledSmallSquare Break[ ] takes effect as soon as it is evaluated, even if it appears inside other functions.

FilledSmallSquare After a Break the value Null is returned from the enclosing control structure.

FilledSmallSquare The function of Break can also be achieved using Throw and Catch.

FilledSmallSquare See Section 2.6.9.

FilledSmallSquare See also: Continue, Return, Goto, Abort.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples