Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local s1 = args[1]
- local s2 = args[2]
- local out = args[3]
- local n = args[4]
- if n == "1" then
- while true do
- if rs.getInput(s1) and rs.getInput(s2) then
- rs.setOutput(out,true)
- else
- rs.setOutput(out,false)
- end
- sleep(0)
- end
- elseif n == "0" then
- while true do
- if rs.getInput(s1) and rs.getInput(s2) then
- rs.setOutput(out,false)
- else
- rs.setOutput(out,true)
- end
- sleep(0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement