Locked lesson.
About this lesson
Comparing two or more things is easy with comparison operators.
Exercise files
Download this lesson’s related exercise files.
Comparison Operators.docx58.7 KB Comparison Operators - Solution.docx
58.9 KB
Quick reference
Comparison Operators
Comparison operators allow us to compare things.
When to use
Anytime you need to compare two or more things, use comparison operators.
Instructions
Here's the main list of comparison operators:
== equal to
=== identical
!= not equal
<> not equal
!== not identical
> greater than
>= greater than or equal to
< less than
<= less than or equal to
Hints & tips
- Comparison operators are used to compare things
Lesson notes are only available for subscribers.