Module:If empty

From Zoophilia Wiki
Revision as of 18:38, 23 December 2014 by meta>Codehydro (test)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:If empty/doc

-- this is intended to replace {{If empty}}
local p = {};
function p.run(frame)
	local args = require('Module:Arguments').getArgs(frame)
	local i = 0
	args[table.getn(args)] = ''
	while string.len(args[i]) do
		i = i + 1
	end
	return args[i]
end
return p