<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.cultopedia.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_any_equal</id>
	<title>Module:If any equal - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.cultopedia.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_any_equal"/>
	<link rel="alternate" type="text/html" href="https://www.cultopedia.org/index.php?title=Module:If_any_equal&amp;action=history"/>
	<updated>2026-04-05T22:07:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://www.cultopedia.org/index.php?title=Module:If_any_equal&amp;diff=512&amp;oldid=prev</id>
		<title>imported&gt;HouseBlaster: Changed protection settings for &quot;Module:If any equal&quot;: bump to TPE: 240k uses ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.cultopedia.org/index.php?title=Module:If_any_equal&amp;diff=512&amp;oldid=prev"/>
		<updated>2025-02-04T01:01:03Z</updated>

		<summary type="html">&lt;p&gt;Changed protection settings for &amp;quot;&lt;a href=&quot;/index.php/Module:If_any_equal&quot; title=&quot;Module:If any equal&quot;&gt;Module:If any equal&lt;/a&gt;&amp;quot;: bump to TPE: 240k uses ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
p.main = function(frame)&lt;br /&gt;
	local check_value = function(value)&lt;br /&gt;
		for n, v in pairs(frame.args) do&lt;br /&gt;
			if type(n)==&amp;#039;number&amp;#039; and v:lower()==value:lower() then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local match = false&lt;br /&gt;
	if frame.args.value and frame.args.value~=&amp;#039;&amp;#039; then&lt;br /&gt;
		match = check_value(frame.args.value)&lt;br /&gt;
	elseif frame.args.values and frame.args.values~=&amp;#039;&amp;#039; then&lt;br /&gt;
		for value in mw.text.gsplit(frame.args.values, &amp;quot;%s*,%s*&amp;quot;) do&lt;br /&gt;
			if check_value(value) then&lt;br /&gt;
				match = true&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return match and &amp;#039;yes&amp;#039; or &amp;#039;no&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.IfAnyEqual = function(frame)&lt;br /&gt;
	local parent = frame:getParent()&lt;br /&gt;
	if not parent.args then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local prefix = frame.args.prefix~=&amp;#039;&amp;#039; and frame.args.prefix or nil&lt;br /&gt;
	local check_value = function(value)&lt;br /&gt;
		if prefix then -- check parameters which have a matching prefix&lt;br /&gt;
			for name, v in pairs(parent.args) do&lt;br /&gt;
				if type(name)==&amp;#039;string&amp;#039; and name:find(&amp;#039;^&amp;#039; .. prefix .. &amp;#039;%d*$&amp;#039;) and v:lower()==value:lower() then&lt;br /&gt;
					return name&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			for pos, name in pairs(frame.args) do&lt;br /&gt;
				if type(pos)==&amp;#039;number&amp;#039; and parent.args[name] and parent.args[name]:lower()==value:lower() then&lt;br /&gt;
					return name&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local match = false&lt;br /&gt;
	if frame.args.value and frame.args.value~=&amp;#039;&amp;#039; then&lt;br /&gt;
		match = check_value(frame.args.value)&lt;br /&gt;
	elseif frame.args.values and frame.args.values~=&amp;#039;&amp;#039; then&lt;br /&gt;
		for value in mw.text.gsplit(frame.args.values, &amp;quot;%s*,%s*&amp;quot;) do&lt;br /&gt;
			local check = check_value(value)&lt;br /&gt;
			if check then&lt;br /&gt;
				match = check&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return match and &amp;#039;yes&amp;#039; or &amp;#039;no&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;HouseBlaster</name></author>
	</entry>
</feed>