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

Eric Essert
Eric Essert
7,816 Points

Please check my code

I believe this is correct but I am being told it is not

a = 2
b = 1
a > b

2 Answers

Hi Eric,

You should only have "a > b" not the other extraneous code there because the challenge only asks you to write the code to check if the variable a is greater than b.

a > b
L B
L B
28,323 Points

It just the way challenge checking is written. I noticed the ruby challenges are ambiguous and not well written. Anyways, in this case the answer is just:

a > b

Dont put anything else.