AND

Airkit supports the standard AND operator. It returns the Boolean TRUE if the two operands, themselves Booleans, are both TRUE. Otherwise, it returns FALSE.

TRUE AND TRUE -> TRUE
TRUE AND FALSE -> FALSE
FALSE AND TRUE -> FALSE
FALSE AND FALSE -> FALSE

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

NULL AND NULL -> NULL

The AND operator evaluates the first operand first. The second operand is only evaluated if the first operand evaluates to TRUE:

FALSE AND NULL -> FALSE
NULL AND FALSE -> NULL
TRUE AND 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) AND ISNUMBER("string") -> FALSE
ISNUMBER(1) AND ISNUMBER(4) -> TRUE

Last updated