PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
Mathematica Personal Grid Edition
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Flow Control
>
Built-in
Mathematica
Symbol
Loops and Control Structures
Tutorials »
|
Continue
Return
Goto
Abort
See Also »
|
Flow Control
Looping Constructs
More About »
Break
Break
[]
exits the nearest enclosing
Do
,
For
or
While
.
MORE INFORMATION
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.
The function of
Break
can also be achieved using
Throw
and
Catch
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Break out of the
Do
when
i
is larger than 2:
In[1]:=
Scope
(1)
Applications
(1)
Properties & Relations
(2)
SEE ALSO
Continue
Return
Goto
Abort
TUTORIALS
Loops and Control Structures
MORE ABOUT
Flow Control
Looping Constructs
New in 1 | Last modified in 3
© 2008 Wolfram Research, Inc.