WolframLang: True/False (boolean)

By Xah Lee. Date: . Last updated: .

True and False are builtin Symbols to represent true and false.

3 > 2
(* True *)

Boolean Operators (Logic Operators)

And[x, y]
(short syntax: x&&y)

Return True when all args are True.

And
x = True;
y = True;
x && y
Or[x, y]
(short syntax: x||y)

Return True if any args is True.

Or
x = True;
y = False;
x || y
Not[x]
(short syntax: !x)

Return True if arg is False, and vice versa.

Not
x = False;
! x

WolframLang Boolean