Cheat Sheets/Power Automate/mod
Power Automate (WDL) function

modPower Automate (WDL) function reference

Remainder after division.

Syntax

wdl
mod(dividend, divisor)

Examples

wdl
mod(17, 5)
2

A common pattern for alternating logic or batching every other item.

wdl
equals(mod(variables('rowNumber'), 2), 0)
true / false
wdl
equals(mod(item()?['Index'], 100), 0)
true every 100th item — useful for a periodic checkpoint

Common mistakes & gotchas

Related Workflow Definition Language functions

From Math

← Back to the Power Automate (WDL) cheat sheet