This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / Tests  /

  • TrueQ[ expr ] yields True if expr is True, and yields False otherwise.
  • Example: TrueQ[x==y].
  • 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].
  • See the Mathematica book: Section 2.5.8.
  • See also: If, Condition, SameQ.