Locked lesson.
About this lesson
How to compare two or more items with Ruby.
Exercise files
Download this lesson’s related exercise files.
Comparison Operators.docx58.7 KB Comparison Operators - Solution.docx
58.7 KB
Quick reference
Comparison Operators
Comparison Operators allow you to compare things.
When to use
Whenever you need to compare two or more things, use comparison operators.
Instructions
Here's a list of comparison operators:
== Equal To
!= Not Equal To
> Greater Than
< Less Than
>= Greater Than or Equal To
<= Less Than or Equal To
Hints & tips
- Comparison Operators let you compare!
Lesson notes are only available for subscribers.