PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Expressions
>
Testing Expressions
>
Mathematica
>
Core Language
>
Procedural Programming
>
Conditionals
>
Testing Expressions
>
Built-in
Mathematica
Symbol
Conditionals
Tutorials »
|
If
Condition
SameQ
Boole
See Also »
|
Testing Expressions
More About »
TrueQ
TrueQ
[
expr
]
yields
True
if
expr
is
True
, and yields
False
otherwise.
MORE INFORMATION
You can use
TrueQ
to "assume" that a test fails when its outcome is not clear.
TrueQ
[
expr
]
is equivalent to
If
[
expr
,
True
,
False
,
False
]
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
TrueQ
will return
True
only if the input is explicitly
True
:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
In[3]:=
Out[3]=
SEE ALSO
If
Condition
SameQ
Boole
TUTORIALS
Conditionals
MORE ABOUT
Testing Expressions
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 1
© 2008 Wolfram Research, Inc.