Logical Functions
Logical functions act upon an expression to return information about the values or sets in the expression.
Function | Description |
---|---|
AND | Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE. |
BITAND | Returns a bitwise 'AND' of two numbers. |
BITOR | Returns a bitwise 'OR' of two numbers. |
BITXOR | Returns a bitwise 'XOR' of two numbers. |
COALESCE | Returns the first argument that does not evaluate to a blank value. If all arguments evaluate to blank values, BLANK is returned. |
FALSE | Returns the logical value FALSE. |
IF | Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE. |
IF.EAGER | Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE. Uses eager execution plan. |
IFERROR | Returns value_if_error if the first expression is an error and the value of the expression itself otherwise. |
NOT | Changes FALSE to TRUE, or TRUE to FALSE. |
OR | Returns TRUE if any of the arguments are TRUE, and returns FALSE if all arguments are FALSE. |
SWITCH | Returns different results depending on the value of an expression. |
TRUE | Returns the logical value TRUE. |
Last update: Nov 14, 2024 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo