Module:If any equal: Difference between revisions

From The Goon Show Depository

en>MusikBot II
m (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)))
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
require('strict')
--require('strict')
local p = {}
local p = {}



Latest revision as of 10:43, 14 July 2024

--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