Module:If empty: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(greatly simplify) |
(we never use k) |
||
Line 2: | Line 2: | ||
function p.main(frame) |
function p.main(frame) |
||
for |
for _,v in ipairs(require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false})) do |
||
if v ~= '' then |
if v ~= '' then |
||
return v |
return v |