Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local term = require( "term")
- local running = true
- while running do
- term.clear()
- print("This is a Lua tutorial! Would you like to learn Lua?")
- local a = io.read()
- if a == "yes" then
- print("Good, let's begin.")
- elseif a == "no" then
- print("Sorry to hear that. have a good day!")
- running = false
- else
- print("answer with Yes or no please.")
- end
- end
- --Credit to: TheFox for helping me correct my code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement