<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_both%2Fdoc</id>
	<title>Template:If both/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_both%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:If_both/doc&amp;action=history"/>
	<updated>2026-06-19T20:04:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.randombell.com/index.php?title=Template:If_both/doc&amp;diff=1671&amp;oldid=prev</id>
		<title>Randombell: Created page with &quot;{{Documentation subpage}} &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt;  __NOTOC__ This helper template is designed to be used in other templates. It can help editors create template code that is self documenting.  === Usage === If &#039;&#039;&#039;a&#039;&#039;&#039; and &#039;&#039;&#039;b&#039;&#039;&#039; then true.  If &#039;&#039;&#039;a&#039;&#039;&#039; nor &#039;&#039;&#039;b&#039;&#039;&#039; then false.  If either &#039;&#039;&#039;a&#039;&#039;&#039; or &#039;&#039;&#039;b&#039;&#039;&#039; then false.  It can be u...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:If_both/doc&amp;diff=1671&amp;oldid=prev"/>
		<updated>2025-08-19T16:00:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;) --&amp;gt;  __NOTOC__ This &lt;a href=&quot;/index.php?title=Help:Templates/Helper_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Templates/Helper templates (page does not exist)&quot;&gt;helper template&lt;/a&gt; is designed to be used in other templates. It can help editors create template code that is self documenting.  === Usage === If &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039; then true.  If &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; nor &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039; then false.  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; then false.  It can be u...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&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 self documenting.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
If &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039; then true.&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; nor &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039; then false.&lt;br /&gt;
&lt;br /&gt;
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; then false.&lt;br /&gt;
&lt;br /&gt;
It can be used to replace the construct: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:a|{{#if:b|true|false}}|false}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{if both| a | b |true|false}}&amp;lt;/nowiki&amp;gt; → {{if both| a | b |true|false}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{if both| a | |true|false}}&amp;lt;/nowiki&amp;gt; → {{if both| | b |true|false}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{if both| | b |true|false}}&amp;lt;/nowiki&amp;gt; → {{if both| | b |true|false}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{if both| |  |true|false}}&amp;lt;/nowiki&amp;gt; → {{if both| |  |true|false}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* {{tl|Both}}&lt;br /&gt;
* {{tl|if either}}&lt;br /&gt;
* {{tl|if empty}}&lt;br /&gt;
* {{tl|if all}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:If-then-else templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Randombell</name></author>
	</entry>
</feed>