Template:Xor

is a logical template used in conjunction with ParserFunctions to give the plaintext ParserFunctions the ability to use logical   statements.

Usage

 * #if 1 and #if 2 are put directly into parserfunctions so the rules for using them are the same as with the #if parserfunction.
 * Only 2 #if's are supported.
 * A 1 is returned if true, and blank if false is not specified. So is compatible with both #if and also #ifexpr if you use false=0.