OR

Airkit supports the standard OR operator. It returns the Boolean TRUE if at least one of the two operands, themselves Booleans, are TRUE. Otherwise, it returns FALSE.

TRUE OR TRUE -> TRUE
TRUE OR FALSE -> TRUE
FALSE OR TRUE -> TRUE
FALSE OR FALSE -> FALSE

If given NULL instead of a Boolean, the OR operator will likewise return NULL:

NULL OR NULL -> NULL

The OR operator evaluates the first operand first. The second operand is only evaluated if the first operand evaluates to FALSE:

TRUE OR NULL -> TRUE
NULL OR TRUE -> NULL
FALSE OR NULL -> NULL

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) OR ISNUMBER("string") -> TRUE
ISNUMBER("one string") OR ISNUMBER("two strings") -> FALSE

Last updated