Posted 27 June 2015 - 11:55 PM
I am trying to create a security system program that runs whenever my hidden front door is closed. So heres my code:
While
redstone.getBundledInput(“bottom”, colors.cyan) == true do
repeat
until redstone.getBundledInput(“bottom”, colors.lightgrey) == true
redstone.setBundledOutput(“bottom”, colors.grey)
sleep(20)
end
so my door closing program ends by setting cyan to true and I can use redprobe to see that its getting to the console that I am using for my security program but when I run my security program instead of it creating a infinite loop checking for a signal on lightgrey(which is my pressure plates) it ends immediately with no error code like its not looping at all? what am I doing wrong?