3.2.1.1 System.boolean
Implements: see System_object
Represents a Boolean value.
Supported operators:
and
- Boolean AND of two values, subject to the normal Boolean truth tables.
or
- Boolean OR of two values, subject to the normal Boolean truth tables.
xor
- Boolean XOR of two values, subject to the normal Boolean truth tables.
not
- Boolean inversion of a value (
true
becomes false
and vice versa).
==
- Tests two Boolean values for equality.
!=
- Tests two Boolean values for inequality.
Supported methods:
str()
- Returns a string representation of the object (overridden; see System_object).
int()
- Returns an integer representation of the object (overridden; see System_object).
float()
- Returns a floating-point representation of the object (overridden; see System_object).
bool()
- Returns a Boolean representation of the object (overridden; see System_object).