Boolean

Operators and functions for working with boolean (bool type) are described here.

Operators

Functions

int(bool b) int

The int function returns 1 if the parameter is true and returns 0 otherwise.

str(bool b) str

The str function returns the "true" if the parameter is true and returns the "false" otherwise.

Last updated