GCSE Computer Science (AQA)

Topic Summaries

ALGORITHMS AND PROGRAMMING: Programming fundamentals

Boolean operators

  • These are used to combine or modify multiple conditions.
  • Boolean operators allow for more complex decision making: 
    • AND: both conditions must be True
    • OR: at least one condition must be True
    • NOT: reverses the Boolean value; useful for checking the opposite of a condition
  • Conditions are often grouped using brackets for clarity
Operator Meaning Example
AND True if both conditions are true

x > 5

AND x < 10

OR True if at least one is true

x > 10

OR y == 3

NOT Reverses the condition

NOT(x == 5)

True if x is not 5

Unlock Boolean operators

Sign up to unlock the rest of this topic — plus every other topic, video, flashcard set and eBook guide in your SnapRevise Digital subscription.

Cancel anytime — instant access the moment you sign up.