On Jun 25, 2006, at 9:32 AM, Dark Ambient wrote:

>      if (reply !='yes' || reply != 'no' )
>          puts ' Please answer "yes" or "no".'
>
>
>      elsif reply == 'yes'
>          reply = true
>      else reply == 'no'
>          reply = false
>      end

Try:
	if (reply != 'yes' && reply != 'no')

OR:

	case reply
	when 'yes': reply = true
	when 'no' : reply = false
	else puts 'please answer "yes" or "no"'
	end

In your original, reply is going to be != to at least one of the two  
alternatives!

-Rob

Rob Biedenharn		http://agileconsultingllc.com
Rob / AgileConsultingLLC.com
+1 513-295-4739