Anonymous user
Module:If empty: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
to handle testcase if empty|2=x
(we never use k) |
(to handle testcase if empty|2=x) |
||
Line 2:
function p.main(frame)
for _=1,9 do
if frame.args[tostring(_)] ~= nil then
return args[tostring(_)]
end
end
for _,v in ipairs(require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})) do
if v ~= '' then
|