Skip to content

bmel:coalesce

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

Variadic function

Accepts a variable number of arguments of the same type.

bmel:coalesce(values: bmel:any...)

Description

Returns the first non-null / non-empty value from the provided arguments, evaluated left to right.

Arguments

Parameter Type Required Description
values ... bmel:any Two or more values evaluated left to right. Returns the first that is not null or empty.

Example

bmel:coalesce({order:Response Payload}.$.region, {order:Request Payload}.$.region, "GLOBAL")

Back to BMEL Reference