Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Flow Control >

AbortProtect

AbortProtect[expr]
evaluates expr, saving any aborts until the evaluation is complete.
Protect part of a computation from early termination:
 
Make sure that an iteration is finished in a time-constrained computation:
In[1]:=
Click for copyable input
Out[1]=
Without AbortProtect, typically imax is updated, but not x:
In[2]:=
Click for copyable input
Out[2]=
New in 2
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team