fork download
  1. #!/usr/bin/lua
  2. write ("What is your name? ")
  3. name = read("*l")
  4.  
  5. if name == "Randal" then
  6. print ("Hello, Randal! How good of you to be here!")
  7. else
  8. print ("Hello " .. name .. "!") -- ordinary greeting
  9. end
Runtime error #stdin #stdout 0.02s 2536KB
stdin
Standard input is empty
stdout
Standard output is empty