Template:XOR/doc
From Feed The Beast Wiki
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