Template:IfAND: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
</pre>
</pre>
</noinclude>
</noinclude>
<*includeonly>{{#switch:{{#If:{{{1}}}|{{{1|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{2}}}|{{{2|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{3}}}|{{{3|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{4}}}|{{{4|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{5}}}|{{{5|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{6}}}|{{{6|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{7}}}|{{{7|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{8}}}|{{{8|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{9}}}|{{{9|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{10}}}|{{{10|undefined}}}|empty}}|empty=|undefined=1|1}}}}}}}}}}}}}}}}}}}}</includeonly>
<includeonly>{{#switch:{{#If:{{{1}}}|{{{1|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{2}}}|{{{2|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{3}}}|{{{3|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{4}}}|{{{4|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{5}}}|{{{5|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{6}}}|{{{6|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{7}}}|{{{7|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{8}}}|{{{8|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{9}}}|{{{9|undefined}}}|empty}}|empty=|undefined=1|<!--defined-->{{#switch:{{#If:{{{10}}}|{{{10|undefined}}}|empty}}|empty=|undefined=1|1}}}}}}}}}}}}}}}}}}}}</includeonly>

Revision as of 19:54, 18 April 2008

Use

This template will accept 10 variable names and return 1 if they all exist and nothing if any one of them is nonexistant or whitespace.

{{IfAND|variable1|...|variable10}}