Pagkakaiba sa pagitan ng mga pagbago ng "Module:SimpleDebug"

m
Display change when a variable is a function
m
m (Display change when a variable is a function)
--2020-06-08 if a variable is a function now is displayed as function (before "function")
--2020-06-06 fix error which occasionally happens when a value == nil
local p = {}
function var (avar)
local EndStr = ''
if type(avar) == 'table'nil then
EndStr = 'nil'
elseif type(avar) == 'table' then
if #avar > 0 then
p.s = p.s..'\r\n'
EndStr = 'false'
end
elseif type(avar) == nil'function' then
EndStr = 'nilfunction'
else
avar = totext (tostring(avar))
35

edit