Mathematica > Flow Control >

CheckAbort

CheckAbort[expr, failexpr]
evaluates expr, returning failexpr if an abort occurs.
  • CheckAbort absorbs any aborts it handles, and does not propagate them further.
Catch an abort in a part of a computation allowing the rest of it to continue:
In[1]:=
Click for copyable input
Out[1]=
New in 2
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team