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

Melissa Taylor
Melissa Taylor
7,352 Points

why doesn't: "a" > "b" work for this question?

not sure what the answer is supposed to be here, but "a" > "b" works in the console ...


William Lynch
William Lynch
5,636 Points

I still haven't found a solution that actually works on the challenge. The text for the quiz talks about ascii characters so I believe that the quotes around a and b are correct.

I've tried every combination I can think of and still can't get it work. I don't. Maybe it's broken question. You would think that someone else would have found this.

if you have an answer, please try it on the challenge first. I've seen many suggestions, but none worked.

Any ideas?

2 Answers

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Seines it is asking for variables do not use quotes around a and b, with them they turn into strings.

William Lynch
William Lynch
5,636 Points

ok, I figured it out. It was worth pursuing. You have to have a space before and after the operator.

I tried these on the challenge and got:

a>b fails a > b works.

Bill