password = "on" antipassword = "off" exitWord = "exit" while true do input = read() if input == password then rs.setOutput("back", true) print("Activated") elseif input == antipassword then rs.setOutput("back", false) print("Deactivated") elseif input == exitWord then return end end