Posted 16 November 2012 - 06:19 PM
so I have a password script
Im looking for away to rerun the script after the else statement
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
password = "password"
debug = "debug"
alarm = "alarm"
write("Enter Password: ")
input = read()
term.clear()
term.setCursorPos(1,1)
if input == password then
print("Password Correct!")
rs.setOutput("left",true)
sleep(5)
rs.setOutput("left",false)
os.shutdown()
elseif == debug then
exit()
elseif input == slarm then
rs.setOutput("right",flase)
os.shutdown()
else
print("Incorrect Password, sounding alarm!")
sleep(2)
rs.setOutput("right",true)
end
Im looking for away to rerun the script after the else statement