Skip to content

bmel:if

Category: Logic & Control Flow · Returns: bmel:any

bmel:if(cond: bmel:boolean, a: bmel:any, b: bmel:any)

Description

Inline conditional (ternary): returns a if cond is true, otherwise returns b.

Arguments

Parameter Type Required Description
cond bmel:boolean Boolean condition to evaluate.
a bmel:any Value returned when the condition is true.
b bmel:any Value returned when the condition is false.

Example

bmel:if({order:Response Payload}.$.status == "SUCCESS", 1, 0)

Back to BMEL Reference