Power Automate (WDL) function
equals — Power Automate (WDL) function reference
Test equality.
Syntax
wdl
equals(object1, object2)
Examples
wdl
equals(item()?['Status'], 'Open')
→ true / false
An explicit null check.
wdl
equals(item()?['Status'], null)
→ true / false
wdl
equals(length(triggerBody()?['Items']), 0)
→ true when the array is empty
Common mistakes & gotchas
- equals() is case-sensitive for strings and does not coerce types — equals(1, '1') returns false.
- equals(item()?['Field'], '') is often used to test "blank," but if the property is absent entirely (null) rather than an empty string, this returns false — use empty() or equals(..., null) instead.
Related Workflow Definition Language functions
From Logic & comparison
Used in these tutorials
From Breaking to Resilient: Three Error-Handling Strategies in Power AutomateHow to Bypass the 'File Is Locked' Error When Using Excel and SharePoint in Power AutomateFrom Raw Strings to Structured Data: A Guide to Power Automate Text FunctionsAutomated Member Sync from Entra Security Groups to Dataverse Teams