TO_BOOLEAN function
TO_BOOLEAN function
 | Function Name | Description | Usage | Input parameter | Return value | 
|---|---|---|---|---|
| TO_BOOLEAN | Converts a string to a boolean data type. | TO_BOOLEAN() | N/A | A 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()
  Output: TRUE
Example 2: Get the boolean value of a string
Sample data: $var1$ = "FALSE"
  Usage: $var1$.TO_BOOLEAN()
  Output: FALSE
Recommendation
- Learn how to add and configure a Data Mapping task