Difference between revisions of "Template:IfAnd"

From Epic Paths
Jump to navigation Jump to search
Tag: Reverted
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
'''Result:''' {{IfAnd|firstvar|secondvar|is true}}
'''Result:''' {{IfAnd|firstvar|secondvar|is true}}


<nowiki>{{</nowiki>IfAnd||secondvar||is false}}</nowiki>
<nowiki>{{</nowiki>IfAnd||secondvar||is true}}</nowiki>


'''Result:''' {{IfAnd||firstvar||is false}}
'''Result:''' {{IfAnd||firstvar||is true}}
 
<nowiki>{{</nowiki>IfAnd||secondvar||is true|else=is false}}</nowiki>
 
'''Result:''' {{IfAnd||firstvar||is true|else=is false}}
</noinclude><!--
</noinclude><!--


--><includeonly>{{#if:{{{6|}}}|{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{#if:{{{4|}}}|{{#if:{{{5|}}}|{{KS| {{{6}}} }}}}}}}}}}}}|<!--
--><includeonly>{{#if:{{{6|}}}|{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{#if:{{{4|}}}|{{#if:{{{5|}}}|{{{6}}}|{{{else|}}}}}|{{{else|}}}}}|{{{else|}}}}}|{{{else|}}}}}|{{{else|}}}}}|<!--
-->{{#if:{{{5|}}}|{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{#if:{{{4|}}}|{{KS| {{{5}}} }}}}}}}}}}|<!--
-->{{#if:{{{5|}}}|{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{#if:{{{4|}}}|{{{5}}}|{{{else|}}}}}|{{{else|}}}}}|{{{else|}}}}}|{{{else|}}}}}|<!--
-->{{#if:{{{4|}}}|{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{KS| {{{4}}} }}}}}}}}|<!--
-->{{#if:{{{4|}}}|{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{{4}}}|{{{else|}}}}}|{{{else|}}}}}|{{{else|}}}}}|<!--
If 3 / IE 2 variables-->{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{KS| {{{3}}} }}}}}}<!--
If 3 / IE 2 variables-->{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{{3}}}|{{{else|}}}}}|{{{else|}}}}}<!--
-->}}}}}}</includeonly>
-->}}}}}}</includeonly>

Latest revision as of 14:19, 20 November 2021

Requires up to 5 variables to be non-empty.


{{IfAnd|firstvar|secondvar|thirdvar|fourthvar|fifthvar|is true}}</nowiki>

Result: is true

{{IfAnd|firstvar|secondvar|is true}}</nowiki>

Result: is true

{{IfAnd||secondvar||is true}}</nowiki>

Result:

{{IfAnd||secondvar||is true|else=is false}}</nowiki>

Result: is false