tbn = peripheral.wrap("back") while true do if rs.getInput("left") ~= true then tbn.setActive(true) else tbn.setActive(false) end sleep(1) end
it returns bios:367: [string "run"]:5: 'then' expected
Edited by DusterTheFirst, 10 May 2015 - 01:24 PM.
Posted 10 May 2015 - 12:36 PM
tbn = peripheral.wrap("back") while true do if rs.getInput("left") ~= true then tbn.setActive(true) else tbn.setActive(false) end sleep(1) end
Edited by DusterTheFirst, 10 May 2015 - 01:24 PM.
Posted 10 May 2015 - 12:49 PM
Edited by Square789, 10 May 2015 - 12:50 PM.
Posted 10 May 2015 - 01:24 PM
Edited by DusterTheFirst, 10 May 2015 - 01:53 PM.
Posted 10 May 2015 - 02:50 PM
Edited by Square789, 10 May 2015 - 02:52 PM.
Posted 10 May 2015 - 03:47 PM
0 members, 1 guests, 0 anonymous users