JXtension - JX.xor(operand1, operand2)

Purpose:
Gives the user the ability to easily do an XOR (eXclusive OR) on two boolean operands.  In other words, this function returns a boolean value indicating whether or not only one of the operands evaluates to true.

Version Notes:
This function existed as a standalone function in version 1.0 but became a member of the JX object starting in version 1.1.

Parameters:

operand1 The first operand.  This is typically a boolean value.
operand2 The second operand.  This is typically a boolean value.

Returns:
True is returned if only one of the operands evaluates to true.  Otherwise false is returned.

Example #1:
The code below will prove that XOR can be carried out simply in JavaScript by using JXtension: