Booleans
The bool type only has two values, and is used to express
a truth value. It can be either Syntax
To specify a bool literal, use the constants
Typically, the result of an operator which returns a bool value is passed on to a control structure.
Converting to boolean
To explicitly convert a value to bool, use the
When converting to bool, the following values are considered
Every other value is considered Warning
|