Re: I'm New
- From: Peña, Botp <botp@xxxxxxxxxxxxxxxxx>
- Date: Mon, 9 Jun 2008 20:44:26 -0500
From: David Stanislaus [mailto:stanislaus_d@xxxxxxxxxxx]
# puts 'Speak up Sonny I can\'t hear you.'
# talk = gets.chomp
# if talk == talk.capitalize or talk == talk.downcase
# then puts 'What? Sonny speak louder! Like THIS.'
# if talk == talk.upcase
# then puts 'no not since'
# end
# end
# and used Caps it just ended the program... sorry if this is
# too trivial,
# if it is maybe you guys could recommend a place where I wont be a
# bother,
we are glad that you are doing your best.
your if is structured like this,
if talk == talk.capitalize or talk == talk.downcase
puts 'What? Sonny speak louder! Like THIS.'
if talk == talk.upcase
puts 'no not since'
end
end
wc means that the 2nd if is nested inside the first if, ergo it does not get called if you entered all caps.
another tip: use indentions (wisely)
kind regards -botp
- References:
- I'm New
- From: David Stanislaus
- Re: I'm New
- From: Peña, Botp
- Re: I'm New
- From: David Stanislaus
- I'm New
- Prev by Date: Re: Random Number Stuff
- Next by Date: Re: Random Number Stuff
- Previous by thread: Re: I'm New
- Next by thread: Re: I'm New
- Index(es):
Relevant Pages
|