Originally Posted by Seerah
If you take away the "local", then yes - it will be a global. Unless you declare that variable as local in your upvalues (outside of the function, therefore local to your whole Lua file.)
|
Thanks all.
So with this example, just so I've got it straight in my head:
Lua Code:
M.GetData_CalculateListingValue = function(announce)
announce = (announce or false);
-- doing stuff with announce
end
The function argument 'announce' will now be a global because it wasn't declared local within the function?