TO_BOOLEAN

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functions

Converts the input text or numeric expression to a BOOLEAN value.

Syntax

TO_BOOLEAN( <string_or_numeric_expr> )

Parameters

NameRequiredDescription
string_or_numeric_exprrequiredA string expression or numeric expression that can be evaluated to a BOOLEAN value.

Returns

Returns a BOOLEAN value or NULL. - Returns TRUE if string_or_numeric_expr evaluates to TRUE. - Returns FALSE if string_or_numeric_expr evaluates to FALSE. - If the input is NULL, returns NULL without reporting an error.

Usage notes

See also