Advertisement
Guest User

onoff

a guest
Mar 3rd, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. password = "on"
  2. antipassword = "off"
  3. exitWord = "exit"
  4.  
  5. while true do
  6. input = read()
  7.  
  8.   if input == password then
  9.     rs.setOutput("back", true)
  10.     print("Activated")
  11.   elseif input == antipassword then
  12.     rs.setOutput("back", false)
  13.     print("Deactivated")
  14.   elseif input == exitWord then
  15.     return
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement