From: sto.mar@... Date: 2012-07-20T15:08:38+09:00 Subject: Re: unless if not == unless post_on_ruby_forum Am 20.07.2012 06:05, schrieb roob noob: > So everything I have thus far read and heard about the Ruby unless > keyword lead me to believe that it is just another word for if not. This > is not true. > > unless 1 + 1 == 2 > puts "a" > elsif 1 + 1 == 5 > puts "b" > else > puts "c" > end [...] > elsif. Why does everyone rave about how unless is exactly like if not > but with clearer language, if this is not the case ? Your usage of unless is extremely unclear. Most people would advise you to change unless x == 2 a else b end to if x == 2 b else a end Furthermore, I do not understand what you want to achieve: your "b" case seems useless to me. Assuming 1 + 1 really would be 5, it could not be equal to 2 at the same time and you would get the "a" case, not "b". --