Module:If empty: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
greatly simplify
(Undid revision 639373039 by Codehydro (talk) appaarently I do)
(greatly simplify)
Line 1:
local p = {};
-- this is intended to replace {{If empty}}
 
local p = {};
function p.runmain(frame)
localfor argsk,v =in ipairs(require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})) do
local if iv ~= 0'' then
return args[i]v
args[table.getn(args)] = ''
end
while args[i] == nil or string.len(args[i]) == 0 do
i = i + 1
end
return args[i]
end
 
return p
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu