TRY_TO_BOOLEAN

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functions

A special version of TO_BOOLEAN that performs the same operation (that is, converts an input expression to a Boolean value), but with error-handling support. If the conversion can’t be performed, TRY_TO_BOOLEAN returns a NULL value instead of raising an error. For more information, see Error-handling conversion functions.

Syntax

TRY_TO_BOOLEAN( <string_expr> )

Parameters

NameRequiredDescription
string_exprrequiredA string expression that can be evaluated to a BOOLEAN value.

Returns

This function returns a value of type BOOLEAN.

Usage notes

Referenced by