From: seebs@... (Peter Seebach) Date: 2007-07-19T11:44:47+09:00 Subject: Re: Newbie looking for help: Determining Gender In message <20070719030031.0E69412A538@mx3.delmonte-phil.com>, =?iso-8859-1?Q?Pe=F1a=2C_Botp?= writes: >sexCheckH = Hash.new >sexCheckH = { "m" => "male", > "f" => "female" > } It seems to me that you have just replaced your empty Hash.new object with a brand new object. >doseSexS = nil >until doseSexS do > puts 'What gender is your patient? Please enter m or f' > doseSexS = sexCheckH[ptSexS = gets.chomp.downcase] > puts "Invalid entry [#{ptSexS}]. Pls retry" unless doseSexS >end >puts "Your patient is a #{doseSexS}." This looks like it should work, though. -s