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:

Wolfram Research (1988), TrueQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TrueQ.html.

Text

Wolfram Research (1988), TrueQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TrueQ.html.

CMS

Wolfram Language. 1988. "TrueQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TrueQ.html.

APA

Wolfram Language. (1988). TrueQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TrueQ.html

BibTeX

@misc{reference.wolfram_2024_trueq, author="Wolfram Research", title="{TrueQ}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/TrueQ.html}", note=[Accessed: 15-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_trueq, organization={Wolfram Research}, title={TrueQ}, year={1988}, url={https://reference.wolfram.com/language/ref/TrueQ.html}, note=[Accessed: 15-November-2024 ]}