You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f = function( x )
local num = 42 // this creates a local variable num
if x == 1 then
local num = 98765 // this creates another local variable num within a narrower block...
end
return num // this should return 42 in all cases
end
print(f(0))
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: