From: Bruno Santana Date: 2010-04-13T09:35:02+09:00 Subject: Re: My application doesn't work well I ran the application and appears that: -bash-4.0$ ruby pedrapapeltesoura.rb Digite pedra, papel ou tesoura: pedra 1 pedra pedra alguem ganhou the number 1 above is the content of the variable resultSorteio, the first word "pedra" is the content of the variable maquina and the second "pedra" is the content of the variable usuario. According to the code below when both variables contain the value "pedra" it should be shown "empatou", however appears "alguem ganhou". am I comparing the strings properly? if usuario == maquina then puts("empatou") else puts("alguem ganhou") end The whole code is in my previous post. Thanks. -- Posted via http://www.ruby-forum.com/.