TrueQ

TrueQ[expr]

yields True if expr is True, and yields False otherwise.

Details

  • 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

Basic Examples  (1)

TrueQ will return True only if the input is explicitly True:

Introduced in 1988
 (1.0)