toBoolean
Converts a value to a Boolean.
If the input element is a bytes array, the function returns true if at least one byte in the array is not 0. If the input element is a string, the function returns true if the string is "true", regardless of its case, and false for any other string.
Arguments
Input element.
Examples
Expression | Result |
---|---|
toBoolean(0x0000007B) | true |