Skip to main content

Boolean Testing Operators

Description​

This operator is used exclusively to check for TRUE, FALSE, or NULL. For an introduction to NULL, please refer to the "Nulls" section.

Operator Introduction​

OperatorFunctionExample
x IS [NOT] TRUEChecks if x is TRUE. Returns TRUE if x is TRUE, otherwise returns FALSE.SELECT 1 IS NOT TRUE
x IS [NOT] FALSEChecks if x is FALSE. Returns TRUE if x is FALSE, otherwise returns FALSE.SELECT 1 IS NOT FALSE
x IS [NOT] NULLChecks if x is NULL. Returns TRUE if x is NULL, otherwise returns FALSE.SELECT 1 IS NOT NULL