Skip to main content Skip to complementary content
Close announcements banner

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!