<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_elseif%2Fsandbox</id>
	<title>Module:If elseif/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_elseif%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:If_elseif/sandbox&amp;action=history"/>
	<updated>2026-05-01T00:11:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:If_elseif/sandbox&amp;diff=25258228&amp;oldid=prev</id>
		<title>imported&gt;Ahecht: Ahecht moved page Module:Else if/sandbox to Module:If elseif/sandbox without leaving a redirect: Clearer title</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:If_elseif/sandbox&amp;diff=25258228&amp;oldid=prev"/>
		<updated>2025-11-07T17:10:34Z</updated>

		<summary type="html">&lt;p&gt;Ahecht moved page &lt;a href=&quot;/index.php?title=Module:Else_if/sandbox&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Else if/sandbox (page does not exist)&quot;&gt;Module:Else if/sandbox&lt;/a&gt; to &lt;a href=&quot;/index.php/Module:If_elseif/sandbox&quot; title=&quot;Module:If elseif/sandbox&quot;&gt;Module:If elseif/sandbox&lt;/a&gt; without leaving a redirect: Clearer title&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;p = {}&lt;br /&gt;
&lt;br /&gt;
local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
p[&amp;#039;elseif&amp;#039;] = function(args)&lt;br /&gt;
	local n = 1&lt;br /&gt;
	repeat&lt;br /&gt;
		local ifval, thenval&lt;br /&gt;
		if args[n] then&lt;br /&gt;
			if args[n+1] then&lt;br /&gt;
				ifval, thenval = args[n], args[n+1]&lt;br /&gt;
				n = n + 2&lt;br /&gt;
			else&lt;br /&gt;
				return args[n]&lt;br /&gt;
			end&lt;br /&gt;
		elseif args[&amp;#039;if&amp;#039; .. n] and args[&amp;#039;then&amp;#039; .. n] then&lt;br /&gt;
			ifval, thenval = args[&amp;#039;if&amp;#039; .. n], args[&amp;#039;then&amp;#039; .. n]&lt;br /&gt;
			n = n + 1&lt;br /&gt;
		else&lt;br /&gt;
			return args[&amp;#039;else&amp;#039;] or &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		if yesno(ifval) then return thenval end&lt;br /&gt;
	until false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._elseif = function(frame)&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame, {trim = false, removeBlanks = false})&lt;br /&gt;
	return p[&amp;#039;elseif&amp;#039;](args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p[&amp;#039;&amp;#039;] = p[&amp;#039;elseif&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Ahecht</name></author>
	</entry>
</feed>