Locked lesson.
About this lesson
In this lesson, we learn about Logic and basic Comparison Operators: >, >=, <, <=, !=, ==.
Exercise files
Download this lesson’s related exercise files.
30 - Logic Comparison Operators.docx61.3 KB 30 - Logic Comparison Operators SOLUTION.docx
58.3 KB
Quick reference
Logic: Comparison Operators (>, >=, <, <=, !=, ==)
Comparison Operators allow us to compare things.
When to use
Use them whenever you need to compare things.
Instructions
The comparison operators are:
== // Equal to
!= // Not Equal To
> // Greater Than
< // Less Than
>= // Greater than or equal to
<= // Less than or equal to
Hints & tips
- These comparisons will return a True or False value
Lesson notes are only available for subscribers.