CheckAbort

CheckAbort[expr, failexpr]
evaluates expr, returning failexpr if an abort occurs.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

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
New to Mathematica? Find your learning path »
Have a question? Ask support »