Help!! I do not know how 'and', 'or', and 'not' work!

# And, Or, Not

**netrunner37**#2

This is called Boolean algebra. Boolean variables are either True or False (1 or 0).

Some Boolean operations are NOT, OR, and AND. (Similar to addition, subtraction etc. in arithmetic).

A NOT operation is the easiest to understand. It returns the opposite of the operand.

So NOT True would be False, and NOT False is True!

An OR operation is performed with at least two operands. The outcome of an OR operation is true if ATLEAST one of the operands are true.

True OR False, True OR True, False OR True- would all give a True outcome.

Only a False OR False- would give a False outcome.

An AND operation is also performed with at least two operands. The outcome of an AND is True if ALL the operands are true.

So only a True AND True- would equate to a True

True AND False, False AND False, False AND True- all equate to a False.

Hope this helps!