Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

FailureQ

FailureQ[expr]
gives True if expr has head Failure or is equal to $Failed or $Aborted.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Test whether an expression represents a "failure":

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Select expressions that do not represent failure:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2015
(10.2)