From: "Kenneth    " Date: 2010-07-10T15:18:34+09:00 Subject: Re: if statements and case statements questions Ruby switches expand to the === operator, for example: case string when "" then puts "Empty" when /^a/ then puts "Starts with a" end is equivalent to: if string === "" puts "Empty" elsif string === /^a/ puts "Contains a" end Your first way of doing things, with the three if statements, you should change the last two to elsifs. -- Posted via http://www.ruby-forum.com/.