Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getPass(checkPass)
- local pass = ""
- term.write("Please enter the password: ")
- pass = read()
- if pass ~= checkPass then
- print("Wrong Password!!")
- return false
- else
- print("Correct Password!!")
- return true
- end
- end
- --Main Program Below!!!
- print("Starting Program!")
- while not getPass("dw20") do
- print("Please try again")
- end
- print("Lets do stuff")
- while not getPass("password") do
- print("No really, try again!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement