Module:If any equal

From The Goon Show Depository

Revision as of 12:00, 20 December 2023 by en>MusikBot II (Protected "Module:If any equal": High-risk template or module: 2808 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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