Advertisement
jhagrid77

Lua Tutorial

Sep 21st, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local term = require( "term")
  2. local running = true
  3.  
  4. while running do
  5. term.clear()
  6. print("This is a Lua tutorial! Would you like to learn Lua?")
  7. local a = io.read()
  8. if a == "yes" then
  9. print("Good, let's begin.")
  10. elseif a == "no" then
  11. print("Sorry to hear that. have a good day!")
  12. running = false
  13. else
  14. print("answer with Yes or no please.")
  15. end
  16. end
  17.  
  18. --Credit to: TheFox for helping me correct my code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement