Let's carry on with these so-called logical operators! They don't just exist as symbols but can be words, too.

The and operator is one of them but, as per convention, Rubyists use &&.

Huh, look at that! The logical and will return true if both conditions on either side of it are true. It's compare-ception!

Psst: in this example we used 2 comparisons and 1 boolean. Since all of the conditions are true, the output is true.