Boolean Operators
Computer Science: OCR A Level, topic 4.3.3
Boolean Operators
Boolean operators perform logical operations on boolean variables and always return another boolean variable.

AND
- AND evaluates to True (1) if and only if both operands are True (1).
- '.' is the symbol for the AND operator.

OR
- OR evaluates to True (1) if any of the two operands are True (1).
- '+' is the symbol for the OR operator.

NOT (negation)
- NOT negates a logical value.
- The symbol for the NOT operator is a line above the variable.
- For example, NOT is written as .

XOR
- XOR means 'exclusive OR'.
- The symbol for the XOR operator is .

NAND
- NAND means NOT AND.
- NAND is written as .

NOR
- NOR means NOT OR.
- NOR is written as .
Test yourself on Boolean Operators
Which Boolean operator takes only one value as input?
What does the operation 0 NAND 0 evaluate to?