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 Greater Than

No idea what the correct answer is supposed to be here. No prior variables show up for me, creating a and b doesn't work

I tried "a">"b"

a=3 b=2 a>b puts a>b b<a puts b<a

etc.

3 Answers

Hiya,

This just needs

a > b

That should fix it for you.

Steve.

Daniel Cunningham
Daniel Cunningham
21,109 Points

The objective is pretty sensitive. I tried "a>b" (without quotations) and it failed, but "a > b" (again, no quotations) worked fine.

Oh man, thanks. I had even tried playing around with the spacing but I had other lines of code in there that made it reject it.

The compiler is a little particular, at times!