Cheat Sheets/Power Automate/greater / less
Power Automate (WDL) function

greater / lessPower Automate (WDL) function reference

Numeric comparison.

Syntax

wdl
greater(value, compareTo) / less(value, compareTo)

Examples

wdl
greater(variables('total'), 1000)
true / false
wdl
greater(length(item()?['Description']), 500)
true / false

ISO-formatted date strings sort correctly with lexical comparison.

wdl
less(formatDateTime(utcNow(), 'yyyy-MM-dd'), formatDateTime(item()?['ExpiryDate'], 'yyyy-MM-dd'))
true / false

Common mistakes & gotchas

Related Workflow Definition Language functions

From Logic & comparison

← Back to the Power Automate (WDL) cheat sheet