This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Flow Control /

CheckAbort

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

FilledSmallSquare CheckAbort absorbs any aborts it handles, and does not propagate them further.

FilledSmallSquare CheckAbort works inside AbortProtect.

FilledSmallSquare CheckAbort has attribute HoldAll.

FilledSmallSquare See Section 2.6.14.

FilledSmallSquare See also: Catch, Check.

FilledSmallSquare New in Version 2.

Further Examples