xor (boolean)

Description

As an extension to Standard Pascal, Irie Pascal supports the xor operator, which when used with operands of boolean type performs boolean XOR. The result of the operation is of boolean type, and is equal to true if one but not both operands are true, and false if both operands are false, or both operands are true.

Example

   false xor false   results in false
   false xor true    results in true
   true  xor false   results in true
   true  xor true    results in false