Skip to main content
VeloDB Cloud 4.xยทApache Doris 3.xยท"Since X.Y" tags refer to Apache Doris versionsVersion mapping

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