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

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

Abort

FilledSmallSquare Abort[ ] generates an interrupt to abort a computation.

FilledSmallSquare You can call Abort anywhere within a computation. It has the same effect as an interactive interrupt in which you select the abort option.

FilledSmallSquare You can use Abort as an "emergency stop" in a computation.

FilledSmallSquare Once Abort has been called, Mathematica functions currently being evaluated return as quickly as possible.

FilledSmallSquare In an interactive session, the final result from an aborted computation is $Aborted.

FilledSmallSquare You can use CheckAbort to "catch" returns from an abort.

FilledSmallSquare See Section 2.6.14.

FilledSmallSquare See also: Throw, TimeConstrained, MemoryConstrained, Return.

FilledSmallSquare New in Version 2.