From: Masoud Ahmadi Date: 2012-12-03T20:35:27+09:00 Subject: Re: If statement This row solved my problem, if op == "Q\n" I was not aware of this little new line thing Cheers everyone -- Posted via http://www.ruby-forum.com/.