The Boolean Class

This page details the properties of the Boolean class. To learn about what the Boolean class is and how you would use it, read about them in this tutorial.

Please note that this reference is elliptical because we autogenerated it. Consider it not a lesson but a reference.

Instance Rules

.and x

returns true if the receiver and x are true. .and is also a short-circuiting infix operator

.or x

returns true if the receiver or x is true. .or is also an short-circuiting infix operator.

.xor x

returns true if the receiver or x, but not both, is true.

.not

returns the opposite of the receiver; not is also a prefix operator.