From: Henry Maddocks Date: 2012-07-20T13:28:21+09:00 Subject: Re: unless if not == unless post_on_ruby_forum On 20/07/2012, at 4:05 PM, roob noob wrote: > > unless 1 + 1 == 2 > puts "a" > elsif 1 + 1 == 5 > puts "b" > else > puts "c" > end 'elsif' has to follow an 'if' NOT an 'unless'. It doesn't make sense to follow unless with an if statement. What you want is 'elsunless', but that doesn't exist in Ruby so chained unless statements aren't possible. Some people even frown upon 'unless/else' which is legal Ruby. Henry