====== boolean ======
A **boolean** holds one of two values, [[arduino:variable scope and qualifiers:Con... le scope and qualifiers:Constants|false]]. (Each boolean variable occupies one byte of memory.)
==== Exam... ary switch on 13, other side connected to ground
boolean running = false;
pinMode(LEDpin... able scope and qualifiers:Constants]]
* [[arduino:boolean operators:Boolean | boolean operators]]
===== Defining Logical Levels, true and false (Boolean Constants) =====
There are two constants used ... . Any integer which is ''non-zero'' is true, in a Boolean sense. So -1, 2 and -200 are all defined as true, too, in a Boolean sense.
Note that the ''true'' and ''false'' constants are typed in lowercase un... IntegerConstants| Integer Constants]]
* [[arduino:boolean_operators:boolean | boolean variables]]
These can be used inside the condition of an [[arduino:control structures:If]] stateme... ===Warning ====
Make sure you don't mistake the boolean AND operator, && (double ampersand) for the bitwi... different beasts.
Similarly, do not confuse the boolean || (double pipe) operator with the bitwise OR ope... twise not ~ (tilde) looks much different than the boolean not ! (exclamation point or "bang" as the program