Skip to main content

Categories: Datatype, Variant Type

IS_BOOLEAN Preview

Returns TRUE if the input expression is a VARIANT<BOOLEAN>.

Syntax

IS_BOOLEAN(value VARIANT) → BOOLEAN

  • value: The VARIANT value to check.

Examples

IS_BOOLEAN example
SELECT IS_BOOLEAN(TO_VARIANT(FALSE))
-- TRUE
IS_BOOLEAN example
SELECT IS_BOOLEAN(TO_VARIANT('hello'))
-- FALSE

Usage Notes

NULL handling for VARIANT inputs

If the input is SQL NULL (e.g., from a missing path), IS_BOOLEAN returns NULL.

InputResult
VARIANT booleanTRUE
VARIANT other typeFALSE
VARIANT nullFALSE
SQL NULLNULL