Skip to main content

Notifications

Power Automate - General Discussion
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 😁

  • DJ_Jamba Profile Picture
    DJ_Jamba 2,327 on at
    Re: Add an "or" to an IF statement expression

    d(-_-)b

  • KellyHickman Profile Picture
    KellyHickman on at
    Re: Add an "or" to an IF statement expression

    King of Solutions. Huzzah!!

  • Verified answer
    DJ_Jamba Profile Picture
    DJ_Jamba 2,327 on at
    Re: Add an "or" to an IF statement expression

    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
    KellyHickman on at
    Re: Add an "or" to an IF statement expression

    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!!

  • DJ_Jamba Profile Picture
    DJ_Jamba 2,327 on at
    Re: Add an "or" to an IF statement expression

    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'
    )

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard