std::Boolean class

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

Str(boolean)
Return the string "True" or "False".
boolean == x
A boolean is equal only to itself.
not boolean
Return the boolean negation of the value.
b1 and b2
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
Return the boolean or of the booleans b1 and b2. The right operand expression is evaluated only if b1 evaluates to False.