fork(1) download
  1. function test (a)
  2. if a then print(type(a) .. " '" .. tostring(a) .. "'" .. " corresponde a verdadeiro")
  3. else print(type(a) .. " '" .. tostring(a) .. "'" .. " corresponde a falso") end
  4. end
  5.  
  6. temp = test("masuia")
  7. print(tmp) -- só para você ver o resultado intermediário.
  8. test(tmp)
  9.  
  10. --https://pt.stackoverflow.com/q/56912/101
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
string 'masuia' corresponde a verdadeiro
nil
nil 'nil' corresponde a falso