Cheat Sheets/Power Automate/add / sub
Power Automate (WDL) function

add / subPower Automate (WDL) function reference

Add or subtract.

Syntax

wdl
add(summand1, summand2) / sub(minuend, subtrahend)

Examples

wdl
add(variables('total'), 5)
A number
wdl
sub(variables('stockOnHand'), triggerBody()?['QuantityOrdered'])
Remaining stock after the order
wdl
add(int(item()?['BasePrice']), int(item()?['Tax']))
The total including tax

Common mistakes & gotchas

Related Workflow Definition Language functions

From Math

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet