From: Masoud Ahmadi Date: 2012-12-03T07:43:37+09:00 Subject: If statement Will anyone be able to point out what I am doing wrong. The code does not understand that I have said Q loop { puts("give me the command to execute or press Q to quit") op=gets if "#{op}" == "Q" then Kernel.exit(0) else value = `#{op}` puts "#{value}" end } -- Posted via http://www.ruby-forum.com/.