The town of BOOL

Boolean Logic has only two values
TRUE and FALSE
There are also three key 'operators', rather like subtraction, multiplication and addition.
OR, AND and NOT
These are the basic rules:
TRUE and FALSE
There are also three key 'operators', rather like subtraction, multiplication and addition.
OR, AND and NOT
These are the basic rules:
NOTNOT TRUE is FALSE
NOT FALSE is TRUE |
ORFALSE OR FALSE is FALSE
FALSE OR TRUE is TRUE TRUE OR TRUE is TRUE |
ANDFALSE AND FALSE is FALSE
FALSE AND TRUE is FALSE TRUE AND TRUE is TRUE |
Try these examples:
NOT TRUE OR TRUE is
FALSE AND NOT FALSE is
NOT FALSE AND NOT FALSE is
TRUE OR NOT TRUE is
NOT TRUE OR TRUE is
FALSE AND NOT FALSE is
NOT FALSE AND NOT FALSE is
TRUE OR NOT TRUE is
Boolean logic and Boolean expressions are the simplest level of a computer. We can easily create electrical circuits that allow Boolean logic to be carried out by a machine. By combining those circuits in clever ways we can add numbers, manipulate text and, ultimately, perform all of the operations that a computer carries out.