Skip to content

bmel:toBoolean

Category: Type Conversion · Returns: bmel:boolean

bmel:toBoolean(expr: bmel:any)

Description

Converts the expression to a boolean value. For strings, accepts 'true'/'false' (case-insensitive) and '1'/'0'. For numbers, zero=false and any non-zero=true.

Arguments

Parameter Type Required Description
expr bmel:any The value to convert to a boolean.

Example

bmel:toBoolean({order:Response Payload}.$.is_active_flag)

Back to BMEL Reference