Class std::Boolean

The class Boolean has only two instances, the objects True and False. These are the only values returned by boolean operations such as == and not. Boolean values are used as conditions in if statements and loops.

class Boolean
The Boolean type. This type object cannot be used to create instances of the type.

Operations

boolean == x (Boolean == ObjectBoolean)
A boolean is equal only to itself.
not boolean (not BooleanBoolean)
Return the boolean negation of the value.
b1 and b2 (Boolean and BooleanBoolean)
Return the boolean and of the booleans b1 and b2. The right operand expression if evaluated only if b1 evaluates to True.
b1 or b2 (Boolean or BooleanBoolean)
Return the boolean or of the booleans b1 and b2. The right operand expression is evaluated only if b1 evaluates to False.
Str(boolean)
Return the string "True" or "False".