Module:If empty: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
No edit summary
mNo edit summary
Line 2: Line 2:


function p.main(frame)
function p.main(frame)
for _=1,9,1 do
for i=1,9,1 do
if frame.args[tostring(_)] ~= '' then
if frame.args[tostring(i)] ~= nil and frame.args[tostring(i)] ~= '' then
return args[tostring(_)]
return args[tostring(i)]
end
end
end
end