BooleanQ

BooleanQ[expr]
returns True if expr is either True or False.

ExamplesExamplesopen allclose all

Basic Examples  (1)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]=
Introduced in 2014
(10.0)