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 / Multiple IF statement ...
Power Automate
Unanswered

Multiple IF statement seperated by OR conditions

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I'm using Power Automate to send an email once a Survey123 form has been sent. The form has values that I'm returning within the email but the values need to be converted to common text, for example "desktop_basic" should be "Desktop Basic". I'm using multiple IF statement separated by OR conditions to achieve this but am coming across an error when setting up my expression. 

 

This expression works just fine. 

 

 

if(equals(triggerOutputs()?['body/feature/attributes/license_requested'],'desktop_basic'),'Desktop Basic','')

 

 

 But this expression throws an error

 

 

if(equals(triggerOutputs()?['body/feature/attributes/license_requested'],'desktop_basic'),'Desktop Basic','') or if(equals(triggerOutputs()?['body/feature/attributes/license_requested'],'desktop_advanced'),'Desktop Advanced','')

 

 

1. Is this the best way to set up the expression or is there a more efficient way to write this? 

2. why would I be receiving an error with the expression containing the OR condition? 

 

Any help is appreciated. 

Thanks.

Categories:
  • Ellis Karim Profile Picture
    12,381 Super User 2026 Season 2 on at

    Hi @Dave-DEP ,

     

    I think the expression needs to be:

    if(equals(triggerOutputs()?['body/feature/attributes/license_requested'],'desktop_basic'),'Desktop Basic', if(equals(triggerOutputs()?['body/feature/attributes/license_requested'],'desktop_advanced'),'Desktop Advanced',''))

     

    For documentation on the or() operator, see:

    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn | or

    or(<expression1>, <expression2>, ...)

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard