Multiple function returns
Contents
Returning multiple values from a function is something that you really learn to enjoy! It makes sense really, functions can take multiple inputs, why not multiple outputs?
Here’s the syntax:
local A,B = Foo('blah')
function Foo(Msg)
return 1, "Two"
end
Continue: The colon operator
Pingback: Will You Share Your Code? - iNTERFACEWARE Inc.