Learn
Control Flow in Ruby

Less Than or Greater Than

We can also check to see if one value is less than, less than or equal to, greater than, or greater than or equal to another. Those operators look like this:

  • Less than: <
  • Less than or equal to: <=
  • Greater than: >
  • Greater than or equal to: >=
Report a Bug
If you see a bug or any other issue with this page, please report it here.
Code Editor