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

TrueQ

TrueQ[expr]
yields True if expr is True, and yields False otherwise.
  • You can use TrueQ to "assume" that a test fails when its outcome is not clear.
TrueQ will return True only if the input is explicitly True:
TrueQ will return True only if the input is explicitly True:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
New in 1