From: "F. Senault" Date: 2007-07-18T20:55:05+09:00 Subject: Re: Newbie looking for help: Determining Gender Le 18 juillet � 03:57, Matthew Borgeson a �crit : BTW, to go further into rubyisms, I believe this is the typical situation where symbols should be used (eg. dose_sex = :female). My way : dose_sex = nil until dose_sex print 'What gender is your patient (please enter m or f) : ' dose_sex = case gets.chomp.downcase when 'f' then :female when 'm' then :male else puts "Please only enter m or f." end end puts "You chose #{dose_sex.to_s}." HTH ! Fred -- Run desire run Sexual being Run him like a blade To and through the heart No conscience One motive Cater to the hollow (A Perfect Circle, Hollow)