I need help with UNLESS


#1


https://www.codecademy.com/en/courses/ruby-beginner-en-NFCZ7/3/3?curriculum_id=5059f8619189a5000201fbcb

It says that it didn't print.

a < b
unless a = b
print "hi"
end

#2

did it?
Depending on whether it did print, what you ask us to help you with would be very different things, it would help if we knew which one it is so that effort is put in the right place. I'm also not sure what's preventing you from fixing it yourself, and that too is really hard to guess without knowing if it was printing, or not.
Don't make us guess, explain what you want to know!


#3

Sorry. It says at the title I said I need help with unless in 3.control of ruby, ruby. Soooo, you should have looked there to know what I'm stuck on.


#4

I don't know what you want. "Help" is very unspecific.


#5

Comparison operators are used to test the relationship between two objects. The equality (==) and inequality (!=) operators can be used on almost any type of value where the other operators are used for numeric comparisons.

x == y // returns true if two things are equal

See if you can find out what is wrong.


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.