|
Programming Arduino - bool
Boolean
A 'bool' holds one of two values, true or false. Each Boolean variable occupies one byte of memory.
false=0 | true=1
Logical AND (&&) results in true only if both operands are true.
Logical NOT (!) results true if false and false if true
Logical OR (||) results in true if one of the operands is true.
Declaration:
Code example:
|