IS [NOT] TRUE
Tests whether the input expression is TRUE or not TRUE, and is an alias for the ISTRUE and ISNOTTRUE functions. ISTRUE returns TRUE if the input expression evaluates to TRUE and FALSE for NULL inputs. ISNOTTRUE returns TRUE if the input expression is FALSE or NULL and FALSE only if the input is TRUE.
Syntax
IS [NOT] TRUE(expression int64) → boolean
- expression: An
integerorbigintexpression. Non-zero values are consideredTRUE.
Examples
ISTRUE exampleSELECT ISTRUE(1)
-- True
IS [NOT] TRUE(expression boolean) → boolean
- expression: A
booleanexpression to evaluate.
Examples
ISTRUE exampleSELECT ISTRUE(FALSE)
-- False
SELECT ISTRUE(TRUE)
-- true
SELECT ISTRUE(NULL)
-- false
IS [NOT] TRUE(expression int32) → boolean
- expression: An
integerorbigintexpression. Non-zero values are consideredTRUE.
Examples
ISTRUE exampleSELECT ISTRUE(0)
-- False
IS [NOT] TRUE(expression int64) → boolean
- expression: An
integerorbigintexpression. Non-zero values are consideredTRUE.
Examples
ISNOTTRUE exampleSELECT ISNOTTRUE(1)
-- False
IS [NOT] TRUE(expression boolean) → boolean
- expression: A
booleanexpression to evaluate.
Examples
ISNOTTRUE exampleSELECT ISNOTTRUE(FALSE)
-- True
SELECT ISNOTTRUE(TRUE)
-- false
SELECT ISNOTTRUE(NULL)
-- true
IS [NOT] TRUE(expression int32) → boolean
- expression: An
integerorbigintexpression. Non-zero values are consideredTRUE.
Examples
ISNOTTRUE exampleSELECT ISNOTTRUE(0)
-- True