You'd get gets.chomp for fine and use fine=="good" for direct comparison.

-xiaofeng

On 5/17/06, viswesh <visweshwar_03 / rediffmail.com> wrote:
> can anybody execute it and tell me where i go wrong.please let me know
> asap...
>
>
> puts " what is your name"
> name = gets.chomp
>
> puts " hello " + name + " how are you"
>
> fine = gets
>
> if fine.String=="good"
>         puts " good buddy"
>         else
>                 puts "oh iam sorry"
>         end
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
>