2.1.6

Boolean Operators

Test yourself

Boolean Operators

Boolean operators perform logical operations and always result in True or False values. An operand is a variable that the operator acts on.

Illustrative background for ANDIllustrative background for AND ?? "content

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.
Illustrative background for ORIllustrative background for OR ?? "content

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.
Illustrative background for NOTIllustrative background for NOT ?? "content

NOT

  • NOT negates a logical value.
    • NOT True = False.
    • NOT False = True.

Jump to other topics

1Computational Thinking & Algorithms

2Programming

3Hardware & Software

4Data

5The Internet

6Online Safety & Security

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson