From: "Carlo E. Prelz" Date: 2013-04-12T00:41:10+09:00 Subject: Re: confusion with gets, if Subject: Re: confusion with gets, if Date: ven 12 apr 13 12:34:54 +0900 Quoting Daniel ferrando (lists@ruby-forum.com): > the "if input == '10'" was my attempt in fixing it It was in the correct direction, since gets() returns a string, not an integer. Instead of > input = gets() try input=gets().chomp().to_i() chomp() removes the carriage return, and to_i() converts the string to an integer. Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)