BooleanQ

BooleanQ[expr]

returns True if expr is either True or False.

Examples

Basic Examples  (1)

BooleanQ gives True on either True or False:

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

On anything else it gives False:

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

See Also

TrueQ  True  False  Booleans  Boole

Introduced in 2014
(10.0)