Logical and Comparison Operators
Learn how to use logical (&&, ||, !) and comparison (==, !=, >, <) operators in Ruby programs.
1
Logical and Comparison Operators
Logical and comparison operators help you make decisions in Ruby programs.
In this lesson, you will learn how to use ==, !=, >, <, &&, ||, and ! operators.

2
Comparison Operators
Comparison operators are used to compare values.
puts 10 == 10 # true
puts 10 != 5 # true
puts 10 > 5 # true
puts 10 < 5 # falseAll lessons in this course
- Conditional Statements
- Loops and Iterators
- Logical and Comparison Operators