Advertisement
Guest User

AND

a guest
Jul 25th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local args = {...}
  2. local s1 = args[1]
  3. local s2 = args[2]
  4. local out = args[3]
  5. local n = args[4]
  6. if n == "1" then
  7. while true do
  8. if rs.getInput(s1) and rs.getInput(s2) then
  9. rs.setOutput(out,true)
  10. else
  11. rs.setOutput(out,false)
  12. end
  13. sleep(0)
  14. end
  15. elseif n == "0" then
  16. while true do
  17. if rs.getInput(s1) and rs.getInput(s2) then
  18. rs.setOutput(out,false)
  19. else
  20. rs.setOutput(out,true)
  21. end
  22. sleep(0)
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement