web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to use 'or' functi...
Power Automate
Unanswered

How to use 'or' function in condition?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
I encountered this error while using 'or' function in my stream. How is the 'or' function used?
error: Unable to process template language expressions for action 'condition' at row '0' and column '0': 'Template language function 'or' expects all its parameters to be Boolean. Invalid parameter types found: 'String'.'.
 
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,923 Most Valuable Professional on at

    The error is because you are probably doing something like this.

    if(field = "Pending" or "Completed", true, false)

    But you can't use the or to add additional values.  It has to be a complete equation that evaluates to true or false.  The right format would be

    if(field = "Pending" or field = "Completed", true, false)

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard