Subject: [ruby-talk:7877] beginner's problem
From: John Rubinubi <rubinubi cyberspace.org>
Date: Fri, 22 Dec 2000 00:20:24 +0900
In-reply-to: *
Hi,
Where am I going wrong?
st='x'
#st=gets
if st=='x'
puts 'it's x'
else
puts 'not x'
end
as written it prints "it's x" as expected but if I take away the # and
execute the st=gets line it's never x.
Thanks,
John