XOR

Airkit supports the standard XOR operator. It returns the Boolean TRUE if one and only one of the two operands, themselves Booleans, are TRUE. Otherwise, it returns FALSE.

TRUE XOR TRUE -> FALSE
TRUE XOR FALSE -> TRUE
FALSE XOR TRUE -> TRUE
FALSE XOR FALSE -> FALSE

The operands can consist of arbitrarily complicated Airscript expressions. For instance, say that both operators are defined by an Airscript expression that uses the function ISNUMBER to determine if the function input is a properly-formatted Number:

ISNUMBER(5) XOR ISNUMBER("string") -> TRUE
ISNUMBER(2) XOR ISNUMBER(2) -> FALSE