Boolean Operators
Computer Science: OCR GCSE, topic 2.2.8
Boolean Operators
Boolean operators perform logical operations and always result in True or False values.

AND
- AND evaluates to True if and only if both operands are True.
- True AND True = True.
- True AND False = False.
- False AND True = False.
- False AND False = False.

OR
- OR evaluates to True if any of the two operands are True:
- True OR True = True.
- True OR False = True.
- False OR True = True.
- False OR False = False.

NOT
- NOT negates a logical value.
- NOT True = False.
- NOT False = True.
Test yourself on Boolean Operators
Which Boolean operator acts on only one operand?
What is the result of this Boolean expression: False OR True?
Pick the true fact about Boolean operators below.
What is the result of the expression "(NOT True) OR False"?