Unless


#1

a=gets.chomp
b=gets.chomp
unless a == b
print "a and b are equal"
else
print "a and b are not equal"
end

for this if i enter different value for a and b then it prints a and b are equal
Please help me improve my understanding for the unless in ruby
Thank You


#2

Read it out loud.


#3

You might wanna do it vice versa.


#4

I got the answer to my question.I had the wrong understanding.Thank You For Your Reply