From: Lucas Holland Date: 2006-12-20T01:06:32+09:00 Subject: Problem with string comparison Hi! The following code: name = gets.comp.to_s if name == "Bill" or name == "Steve" puts "Wow, you're pretty smart!" end yields this error, once executed: NoMethodError: undefined method ‘comp’ for "Bill":String What is wrong with the code? Thanks in advance, chell -- Posted via http://www.ruby-forum.com/.