Break¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
Break[] exits the nearest enclosing Do, For, or While loop.
After Break[], the enclosing loop returns Null.
Break[] takes effect as soon as it is evaluated.
Break has attribute Protected.
Examples¶
All examples below are verified against the current Mathilda build.
Implementation notes¶
- Has attribute
Protected. - Takes effect as soon as it is evaluated (e.g. inside an
Ifwithin the body),
Attributes: Protected.
Implementation status¶
Stable — documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
References¶
- Source:
src/info.c - Specification:
docs/spec/builtins/control-flow.md