Locked lesson.
About this lesson
How to compare two things.
Exercise files
Download this lesson’s related exercise files.
Comparison Operators.docx58.9 KB Comparison Operators - Solution.docx
58.9 KB
Quick reference
Comparison Operators
Comparison operators allow us to compare things.
When to use
Use these whenever you need to compare things.
Instructions
Here are the main comparison operators:
== is equal to
!= is not equal to
> greater than
>= greater than or equal to
< less than
<= less than or equal to
Hints & tips
- Comparison operators allow us to compare two or more things
- Comparison operatros are often used in conditional statements
Lesson notes are only available for subscribers.