Skip to content

bmel:is-before

Category: Date & Time · Returns: bmel:boolean

Signature
bmel:is-before(a: bmel:date | bmel:datetime, b: bmel:date | bmel:datetime)

Description

Returns true if date/datetime a is strictly before b.

Arguments

Parameter Type Required Description
a bmel:date | bmel:datetime The date to test.
b bmel:date | bmel:datetime The reference date to compare against.

Examples

Paid before the due date
bmel:is-before({getOrder:Response Payload}.$.paid_at, {getOrder:Response Payload}.$.due_date)
Created before today
bmel:is-before({createOrder:Request Payload}.$.created_at, bmel:today())

← Back to BMEL Reference