Hi all, just a quick check...
local var1, var2;
Is var2 a local variable here? Or is only var1 a local?
Thanks.
Hi all, just a quick check...
local var1, var2;
Is var2 a local variable here? Or is only var1 a local?
Thanks.
Both variables are local. You can even assign both to nil:
local var1,var=nil
In this case, both are assigned to nil. To assign them to 2 different values, simply:
local var1,var=1,2