Posted 20 December 2013 - 12:41 PM
So here is my code:
if rs.getInput("Back")=True then
rs.setOutput("Right")=True
sleep(1)
rs.setOutput("Right")=False
sleep(1)
rs.setOutput("Right")=True
sleep(1)
rs.setOutput("Right")=False
rs.setOutput("Back")=False
print("Door opened")
end
if rs.getInput("Back")=False then
rs.setOutput("Left")=True
sleep(1)
rs.setOutput("Left")=False
sleep(1)
rs.setOutput("Left")=True
sleep(1)
rs.setOutput("Left")=False
rs.setOutput("Back")=True
print("Door Closed")
end
But I keep getting the error:Im not sure why I'm getting this error please help!bios:338: [string "door"]:1: 'then' expected