Posted 06 January 2018 - 09:42 PM
Try to do a Prgram for an Elevator
If I try to start it, I get following Error "then" expectet at line 14
I don't understand wherer the problem is
If I try to start it, I get following Error "then" expectet at line 14
I don't understand wherer the problem is
os.pullEvent("redstone")
while true do
if rs.testBundledInput("left", colors.white)) then
if Etage == 1 then
rs.setBundledOutput("left", colors.lime)
sleep(1)
rs.setBundledOutput("left", colors.red)
else do
rs.setBundledOutput("left", colors.pink)
if colors.test(rs.setBundledInput("left"), colors.black) == true then
rs.setBundledOutput("left", colors.red)
end
end
end
end
end