24,539
ARTICLES
ON THIS WIKI
ON THIS WIKI
Template:XOR
Template documentation (for the above template, sometimes hidden or invisible)
Contents
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]
View All ATL Twitter Feed
Discussion
To discuss the topics on this wiki, you can visit our community forums!