xor()

Synopsis

Returns the "exclusive or" result on a and b. Returns true if either argument is true , but not both.

Syntax

xor ( a As Boolean, _
      b As Boolean ) As Boolean 
Argument Type Description
a Boolean The first input.
b Boolean The second input.

Example 1

Intent >xor(True, True) 
--> False 

Example 2

Intent >xor(True, False) 
--> True 

Example 3

Intent >xor(False, True) 
--> True 

Example 4

Intent >xor(False, False) 
--> False