Sign in

Comparison operators in Ruby

When using Ruby to create an application you might find yourself needing something to happen if another. thing is true. For instance, if you were a teacher and wanted to invent a system that automatically knows when to pass or fail your students. In Ruby, we have this useful tool called Comparison operators. We use these to make comparisons in if statements to produce the best choice depending on the if statements condition block of course.