Jump to content

Module:If any equal

Permanently protected module
From Wikipedia, the free encyclopedia

require('strict')
local p = {}

p.main = function(frame)
	local match = false
	for name, value in pairs(frame.args) do
		if type(name)=='number' and value:lower()==frame.args.value:lower() then
			match = true
			break
		end
	end
	return match and 'yes' or 'no'
end

return p