Posted 04 September 2012 - 09:04 PM
Hi,
I have a small code that is meant to pulse a wire on the right side of the computer, on and off every second three times. Here is my code:
When I run it the wire stays on permanently until the "time" variable reaches 0. Help?
Thanks, I'm sure it's something obvious and stupid….
H
I have a small code that is meant to pulse a wire on the right side of the computer, on and off every second three times. Here is my code:
time = 3
while time > 0 do
rs.setOutput("right", true)
sleep (1)
rs.setOutput("right", false)
time = time -1
end
When I run it the wire stays on permanently until the "time" variable reaches 0. Help?
Thanks, I'm sure it's something obvious and stupid….
H