Mathematica 9 is now available

Break

Usage

Break[ ] 中止最近的包含的Do, For or While.


Notes

Break[ ] 只要求值就有效,即使他出现在其他函数中。
• 在一个Break之后,Null值从包含的控制结构中返回。Break函数也能用ThrowCatch实现。
• 参见 Mathematica 全书: 2.5.9.
• 同时参见: Continue, Return, Goto, Abort.
Further Examples

In[1]:=  

The Break[] causes the loop to terminate as soon as t exceeds a value of 10.

In[2]:=  





In[3]:=  



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.