Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Expressions > Testing Expressions > TrueQ >
Mathematica > Core Language > Procedural Programming > Conditionals > Testing Expressions > TrueQ >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF