Code Editor
Learn
Control Flow in Ruby

Dare to Compare

Now let's review comparators / relational operators. We've turned the tables a bit!

Remember, comparators need to compare two values to each other to result in true or false

10 > 8 // true 8 > 10 // false 8 == 10 // false 8 != 10 // true
Report a Bug
If you see a bug or any other issue with this page, please report it here.