This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Break

Break[]
exits the nearest enclosing Do, For or While.
  • Break[] takes effect as soon as it is evaluated, even if it appears inside other functions.
  • After a Break the value Null is returned from the enclosing control structure.
New in 1 | Last modified in 3