Template:IfAND: Difference between revisions
Jump to navigation
Jump to search
m (Debugging) |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{#If:{{{1}}}|{{{1|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}| |
<includeonly>{{#switch:{{#If:{{{1}}}|{{{1|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}| {{#switch:{{#If:{{{2}}}|{{{2|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{3}}}|{{{3|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{4}}}|{{{4|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{5}}}|{{{5|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{6}}}|{{{6|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{7}}}|{{{7|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{8}}}|{{{8|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{9}}}|{{{9|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{10}}}|{{{10|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|1}}}}}}}}}}}}}}}}}}}}</includeonly><noinclude> |
||
{{essential}} |
|||
<noinclude> |
|||
==Usage Documentation== |
|||
==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. |
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. |
||
Line 13: | Line 13: | ||
|fals= |
|fals= |
||
</pre> |
</pre> |
||
==Also See:== |
|||
* [[Template:IfMatch]] |
|||
* [[Template:IfTHEN]] |
|||
* [[Template:IfXOR]] |
|||
</noinclude> |
</noinclude> |
Latest revision as of 19:27, 22 January 2009
Essential Template
- This template is so essential that it has been protected to prevent tampering.
- If you have suggestions to extend its function or have observed bugs, please post to the discussion page.
Usage Documentation
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.
If |true= or |false= is set, it will return custom strings for matches or no matches.
{{IfAND|variable1|...|variable10}} Additional options: |true= |fals=