How to add your knowledge

xor()

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1
    4. 4. Example 2
    5. 5. Example 3
    6. 6. Example 4

    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