Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Operators and Control Structures Ruby Operators Less Than

Will Taylor Smith
Will Taylor Smith
1,370 Points

Why is this not correct

I am entering this as I did in irb. I'm not sure what I'm doing incorrectly.

"b" < "a"

2 Answers

Tobias Helmrich
Tobias Helmrich
31,603 Points

Hey Will,

you have to check if the variable b is less than the variable a but you're checking if the string "b" is less than the string "a". I hope that helps, here is the working code:

b < a