R
Rico Knoop
i'v bin programming for about 2 week now and just about completed
http://pine.fm/LearnToProgram/
but for a change of pace i started something of my own but i cant seem
to get my program to wait X-seconds for user input.
basicly what i got is:
input= "empty"
input= gets.chomp
if input == "empty"
puts "no input"
else
puts input
end
all i want it to do is wait like 10 seconds and if there has bin no user
input it should just continue with input= "empty"
i feel like i'm missing something real simple
thnx in advance
-Bakakyoo-
http://pine.fm/LearnToProgram/
but for a change of pace i started something of my own but i cant seem
to get my program to wait X-seconds for user input.
basicly what i got is:
input= "empty"
input= gets.chomp
if input == "empty"
puts "no input"
else
puts input
end
all i want it to do is wait like 10 seconds and if there has bin no user
input it should just continue with input= "empty"
i feel like i'm missing something real simple
thnx in advance
-Bakakyoo-