From: Robert Klemme Date: 2011-01-31T19:16:37+09:00 Subject: Re: i need help with if statements On Sun, Jan 30, 2011 at 5:57 AM, Dan L. wrote: > thanks :) Here's an alternative way using case statement that I personally find nicer: case answer when "yes" # yes processing code when "no" # no processing code else $stderr.puts "Wrong answer: #{answer}" end Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/