pseudocode

if text == "BYE"
  exit
elsif text != text.uppercase
 say "she cant hear you"
else
 anwser
end

-- 
Posted via http://www.ruby-forum.com/.