Template:IfAND: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Template:IfAND" [edit=sysop:move=sysop]) |
mNo edit summary |
||
Line 9: | Line 9: | ||
</noinclude> |
</noinclude> |
||
<includeonly> |
<includeonly> |
||
{{#switch: {{#if:{{{1}}}|{{{1| |
{{#switch: {{#if:{{{1}}}|{{{1|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{2}}}|{{{2| |
| <!--defined--> {{#switch: {{#if:{{{2}}}|{{{2|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{3}}}|{{{3| |
| <!--defined--> {{#switch: {{#if:{{{3}}}|{{{3|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{4}}}|{{{4| |
| <!--defined--> {{#switch: {{#if:{{{4}}}|{{{4|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{5}}}|{{{5| |
| <!--defined--> {{#switch: {{#if:{{{5}}}|{{{5|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{6}}}|{{{6| |
| <!--defined--> {{#switch: {{#if:{{{6}}}|{{{6|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{7}}}|{{{7| |
| <!--defined--> {{#switch: {{#if:{{{7}}}|{{{7|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{8}}}|{{{8| |
| <!--defined--> {{#switch: {{#if:{{{8}}}|{{{8|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{9}}}|{{{9| |
| <!--defined--> {{#switch: {{#if:{{{9}}}|{{{9|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| {{#switch: {{#if:{{{10}}}|{{{10| |
| <!--defined--> {{#switch: {{#if:{{{10}}}|{{{10|undefined}}}|empty}} |
||
| 1 = |
| 1 = |
||
| |
| undefined = 1 |
||
| 1 |
| 1 |
||
}} |
}} |
Revision as of 22:44, 17 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}}