Skip to content

IsTrue ​

Tests whether expr evaluates to the literal True.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageTrueQ✓
IsTrue(expr)True only if expr evaluates to True, False otherwise
Typed signatures
TypePackageApplies
(any) -> booleancombinatoricsalways

Domain: Collections

Details
  • No third "unknown" outcome — an unevaluated symbolic expression, False, or anything else that isn't literally True all answer False.
  • Wolfram's TrueQ; ours spells predicates Is… (see IsPrime, IsConnectedGraph).

Examples

Basic #
live ↗
InIsTrue(True)\mathrm{IsTrue}(\mathrm{True})OutTrue\mathrm{True}
Scope #
live ↗
InIsTrue(False)\mathrm{IsTrue}(\mathrm{False})OutFalse\mathrm{False}
live ↗
InIsTrue(1=1)\mathrm{IsTrue}(1=1)OutTrue\mathrm{True}
live ↗
InIsTrue(x)\mathrm{IsTrue}(x)OutFalse\mathrm{False}
About
Examples4
Checked againstWolfram Language 4 agree
CrosswalkWolfram Language

See also: IsInteger