Skip to the content.

Big Idea 3 Unit 5

Big Idea 3 Unit 5

Oct 11, 2024 • 1 min read


Summary

Our group also led this lesson, which covered two important topics:

Relational Operators

These operators compare two values and return a Boolean result (True or False):

Operator Meaning Example
== Equal to x == y
!= Not equal to x != y
> Greater than x > y
< Less than x < y
>= Greater than or equal to x >= y
<= Less than or equal to x <= y

Logical Operators

These combine multiple conditions and return a single Boolean value:

Operator Meaning Result Example
AND (&& or and) Returns True only if both conditions are true. Otherwise, False. (True AND False) => False
OR (|| or or) Returns True if at least one condition is true. Otherwise, False. (True OR False) => True
NOT (! or not) Returns the opposite of the condition’s Boolean value. NOT True => False

Click here to view our page