24,530
ARTICLES
ON THIS WIKI
ON THIS WIKI
Template:XOR/doc
This template functions as a binary XOR operation. It will only return a value if only the first or only the second parameter is given, but not if both are.
Syntax[edit]
{{XOR|<condition 1>|<condition 2>|<true output>|<false output>}}
Examples[edit]
-
{{XOR|foo|bar}}
gives(nothing)
-
{{XOR|foo|}}
givestrue
-
{{XOR||bar}}
givestrue
-
{{XOR||}}
gives(nothing)
-
{{XOR|foo|bar|yup|nope}}
givesnope
-
{{XOR|foo||yup|nope}}
givesyup
-
{{XOR||bar|yup|nope}}
givesyup
See also[edit]
Twitter Feed
Warning: file_get_contents(/srv/common/): failed to open stream: No such file or directory in /var/www/html/skins/MMWiki/SkinMMWiki.php on line 392
Discussion
To discuss the topics on this wiki, you can visit our community forums!