KnowledgeVault
Welcome to KnowledgeVault!
KnowledgeVault
Welcome to KnowledgeVault!
KnowledgeVault
Would you like to react to this message? Create an account in a few clicks or log in to continue.

KnowledgeVault


 
HomeLatest imagesi think it works 32132110RegisterLog in

 

 i think it works

Go down 
2 posters
AuthorMessage
nashw18
Entertainment Mod
Entertainment Mod
nashw18


Posts : 275
Join date : 2009-07-19
Age : 29

i think it works Empty
PostSubject: i think it works   i think it works EmptyWed Sep 02, 2009 10:05 pm

word = 'hello'
puts 'Plese enter the best bleach character.'
word = gets.chomp
if word == Grimmjow
puts 'You are correct.'
else
puts 'YOU FAIL'
end
sleep 5
Back to top Go down
IllusionSlayer
KnowledgeVault Owner
KnowledgeVault Owner



Posts : 900
Join date : 2009-07-09
Age : 30
Location : Look behind you.

i think it works Empty
PostSubject: Re: i think it works   i think it works EmptyWed Sep 02, 2009 10:10 pm

word = 'hello'
puts 'Plese enter the best bleach character.'
word = gets.chomp
if word == Grimmjow
puts 'You are correct.'
else
puts 'YOU FAIL'
end
sleep 5

is close very close but if you run it you will get something about an undefined variable.

try it this way:

word = 'hello'
puts 'Plese enter the best bleach character.'
word = gets.chomp
if word == 'Grimmjow' <---------need the quotes
puts 'You are correct.'
else
puts 'YOU FAIL'
end
sleep 5
Back to top Go down
https://knowledgevault.darkbb.com
nashw18
Entertainment Mod
Entertainment Mod
nashw18


Posts : 275
Join date : 2009-07-19
Age : 29

i think it works Empty
PostSubject: Re: i think it works   i think it works EmptyThu Sep 03, 2009 8:25 pm

omg i was sooooooooo close *cries* lol
Back to top Go down
IllusionSlayer
KnowledgeVault Owner
KnowledgeVault Owner



Posts : 900
Join date : 2009-07-09
Age : 30
Location : Look behind you.

i think it works Empty
PostSubject: Re: i think it works   i think it works EmptyFri Sep 04, 2009 8:37 am

i think it works Fail2
Back to top Go down
https://knowledgevault.darkbb.com
Sponsored content





i think it works Empty
PostSubject: Re: i think it works   i think it works Empty

Back to top Go down
 
i think it works
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
KnowledgeVault :: Computers :: Programming :: Ruby-
Jump to: