bool
The bool type can only store one of two values: true or false. It is
mainly useful in conditions. To combine bool variables, use the usual Boolean
operators such as
and,
or, and
not.
bool yes = 5 > 0;
The bool type can only store one of two values: true or false. It is
mainly useful in conditions. To combine bool variables, use the usual Boolean
operators such as
and,
or, and
not.
bool yes = 5 > 0;