See the supported connectors for Application Integration.

TO_BOOLEAN function

TO_BOOLEAN function

Function NameDescriptionUsageInput parameterReturn value
TO_BOOLEANConverts a string to a boolean data type.TO_BOOLEAN()N/AA boolean. If a string has the value true or false, this function returns the corresponding boolean value.

Supported data type

The TO_BOOLEAN function supports the following data types:

  • JSON
  • String

Example 1: Get the boolean value of a string

Sample data: $var1$ = "true"

Usage: $var1$.TO_BOOLEAN()

Get the boolean value of var1.

Output: TRUE

Example 2: Get the boolean value of a string

Sample data: $var1$ = "FALSE"

Usage: $var1$.TO_BOOLEAN()

Get the boolean value of var1.

Output: FALSE

Recommendation