Posted 02 September 2013 - 02:30 AM
                I made this code but it isnt doing what i want it to do
it should send a redstone signal to the right if it has a signal from back and left. if it doesnt have a signal from back but it does on left, it should send pulses to the top intil it gets a signal
any help?
                
            it should send a redstone signal to the right if it has a signal from back and left. if it doesnt have a signal from back but it does on left, it should send pulses to the top intil it gets a signal
any help?
while true do
  os.pullEvent("redstone")
  liquid = rs.getInput("back")
    if liquid == true then
  rs.setOutput("right", true)
  sleep(5.75)
  rs.setOutput("right", false)
  sleep(.1)
    else
  reset = rs.getInput("back")
    if reset == true then
  break
    else
    while reset == false do
  rs.setOutput("top", true)
  sleep(.3)
  rs.setOutput("top", false)
  sleep(.3)
	   end
	 end
   end
end
 
        