Xor Function

  • Updated

The Xor function returns the logical exclusive OR of one or more expressions. The Xor operator requires two expressions.

Syntax

 

The Xor function returns the logical exclusive OR of one or more expressions. The Xor operator requires two expressions.

 

Xor(value1, value2, ...)

 

 

Arguments:

 

 

 

value

Boolean - A list of one or more boolean expressions to XOR.

Remarks

  • Evaluates to true when if either expression is true, otherwise evaluates to false.
  • If three or more values are passed, the result is true if exactly one of the values is true.
  • Example: Xor(false) returns false.
  • Example: Xor(true) returns true.
  • Example: Xor(true, true) returns false.
  • Example: Xor(true, false) returns true.
  • Example: Xor(false, false, false, false) returns false.
  • Example: Xor(true, true, true, true) returns false.
  • Example: Xor(false, false, true, false) returns true.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.