Template:And/doc
Jump to navigation
Jump to search
This template checks whether all parameters that are passed to it are existing, in the sense of the #if
parser function. If they are, it prints a 1. If at least one parameter fails the #if
check, it prints a 0.
Usage
{{and| <string 1> | <string 2> | ... | <string n>}}
It can take a nearly infinite number of parameters.
Examples
Code | Result |
---|---|
{{and|foo|bar}} |
1 |
{{and|foo||bar}} |
0 |
{{and|foo| |bar}} |
0 |
{{and|foo| |
0 |