<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_either%2Fdoc</id>
	<title>Template:If either/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_either%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:If_either/doc&amp;action=history"/>
	<updated>2026-10-31T17:49:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:If_either/doc&amp;diff=131029&amp;oldid=prev</id>
		<title>Wikipedia&gt;Andrybak: /* See also */ drop link to Template:Unique coins per Wikipedia:Templates for discussion/Log/2025 December 3#Template%3AUnique coins (via WP:JWB)</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:If_either/doc&amp;diff=131029&amp;oldid=prev"/>
		<updated>2025-12-10T17:28:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; drop link to &lt;a href=&quot;/w/index.php?title=Template:Unique_coins&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:Unique coins (page does not exist)&quot;&gt;Template:Unique coins&lt;/a&gt; per &lt;a href=&quot;https://en.wikipedia.org/wiki/Templates_for_discussion/Log/2025_December_3#Template:Unique_coins&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Templates for discussion/Log/2025 December 3&quot;&gt;Wikipedia:Templates for discussion/Log/2025 December 3#Template:Unique coins&lt;/a&gt; (via &lt;a href=&quot;/w/index.php?title=WP:JWB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:JWB (page does not exist)&quot;&gt;WP:JWB&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}} __NOTOC__ __NOEDITSECTION__&lt;br /&gt;
{{Deprecated template|If either|note=Use {{mwl|#if|a b|...}} instead.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE----&amp;gt;&lt;br /&gt;
: &amp;lt;code class=&amp;quot;nowrap&amp;quot;&amp;gt;{{((}}if either ({{!}}&amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039;) ({{!}}&amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039;) ({{!}}&amp;#039;&amp;#039;first result&amp;#039;&amp;#039;) ({{!}}&amp;#039;&amp;#039;second result&amp;#039;&amp;#039;){{))}}&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;amp;nbsp;&amp;quot;If either (&amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; or) (&amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039;) is true, (return &amp;#039;&amp;#039;first result&amp;#039;&amp;#039;,) (else return &amp;#039;&amp;#039;second result&amp;#039;&amp;#039;).&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This [[Help:Templates/Helper templates|helper template]] is designed to be used in other templates. It can help editors create template code that is more self documenting. There are no advantages of using this template over using the construct {{nowrap|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:{{{1|}}}{{{2|}}} |…}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}}: all parameters are fully evaluated before reaching the template.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;or&amp;quot; in the &amp;quot;&amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039;&amp;quot; above is [[Logical disjunction|inclusive]]: if both &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; &amp;lt;u&amp;gt;and&amp;lt;/u&amp;gt; &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039; are true, the template will return the &amp;#039;&amp;#039;first result&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
This template can also be used to replace the construct {{nowrap|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt; |true |{{#if:&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt; |true |false}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}} (i.e. &amp;quot;if &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039;, then true; else if &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039;, then true; else false&amp;quot;).&lt;br /&gt;
&amp;lt;!----&lt;br /&gt;
The template&amp;#039;s code is:&lt;br /&gt;
&amp;lt;pre&amp;gt; {{#if:{{{1|}}} |{{{3|}}} |{{#if:{{{2|}}} |{{{3|}}} |{{{4|}}} }} }} &amp;lt;/pre&amp;gt;&lt;br /&gt;
i.e. &amp;quot;If {{{1}}}, do {{{3}}}; else if {{{2}}}, do {{{3}}}; else do {{{4}}}.&amp;quot;&lt;br /&gt;
 -----&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code !! Result&lt;br /&gt;
|-&lt;br /&gt;
 | &amp;lt;nowiki&amp;gt;{{if either |a |b |true |false}}&amp;lt;/nowiki&amp;gt; || {{if either |a |b |true |false}}&lt;br /&gt;
|-&lt;br /&gt;
 | &amp;lt;nowiki&amp;gt;{{if either |a | |true |false}}&amp;lt;/nowiki&amp;gt;  || {{if either |a | |true |false}}&lt;br /&gt;
|-&lt;br /&gt;
 | &amp;lt;nowiki&amp;gt;{{if either | |b |true |false}}&amp;lt;/nowiki&amp;gt;  || {{if either | |b |true |false}}&lt;br /&gt;
|-&lt;br /&gt;
 | &amp;lt;nowiki&amp;gt;{{if either | | |true |false}}&amp;lt;/nowiki&amp;gt;   || {{if either | | |true |false}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|if all}}&lt;br /&gt;
* {{tl|if both}}&lt;br /&gt;
* {{tl|if empty}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!----CATEGORIES BELOW THIS LINE, PLEASE:----&amp;gt;&lt;br /&gt;
[[Category:If-then-else templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Andrybak</name></author>
	</entry>
</feed>