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 / Add an "or" to an IF s...
Power Automate
Answered

Add an "or" to an IF statement expression

(0) ShareShare
ReportReport
Posted on by

Is there a way to do an "or" statement as part of this expression?

 

Original "IF" expression:

If(equals(outputs('Get_response_details')?['body/r47fb301111e74dc4b0abe7bd26b23e11'],'deactivate a course'),null,' deep link’)

 

Would like the expression to equal 'deactivate a course' OR 'update attendance' in this expression. Is that possible?

Is there a way to do an "or" statement as part of this expression we just created?

 

If(equals(outputs('Get_response_details')?['body/r47fb301111e74dc4b0abe7bd26b23e11'],'deactivate a course, OR update attendance'),null,' deep link’)

@DJ_Jamba 😁

Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Back so soon?!?!

    Try this:

    If(
     or(
     equals(
     outputs('Get_response_details')?['body/r47fb301111e74dc4b0abe7bd26b23e11'],
     'deactivate a course'
     ),
     equals(
     outputs('Get_response_details')?['body/r47fb301111e74dc4b0abe7bd26b23e11'],
     'update attendance'
     ),
     ),
     null,
     'deep link'
    )
  • KellyHickman Profile Picture
    on at

    Tried it copy and paste, then typed it in, it keep saying invalid expression. It's late in the day here, I could be not doing something right, and it's Friday. I'll try again next week and maybe bug you again? Enjoy your weekend, and thanks again!!

  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Moderator on at

    My fault. I threw an extra comma in there because of the JD n Coke..
    It should be:

    If(
     or(
     equals(
     outputs('Get_response_details')?['body/r47fb301111e74dc4b0abe7bd26b23e11'],
     'deactivate a course'
     ),
     equals(
     outputs('Get_response_details')?['body/r47fb301111e74dc4b0abe7bd26b23e11'],
     'update attendance'
     )
     ),
     null,
     'deep link'
    )

     

    Have a great weekend!

  • KellyHickman Profile Picture
    on at

    King of Solutions. Huzzah!!

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    d(-_-)b

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard