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 write 2 condtio...
Power Automate
Answered

how to write 2 condtions in single if condition?

(0) ShareShare
ReportReport
Posted on by 162

strcode is my varibale which should  not equal to 200 or 500 in if condition

MitheshRpa_0-1716912391835.png

 

I have the same question (0)
  • Gidi Profile Picture
    601 on at

    Use %FileDownloadStatusCode <> 200 OR FileDownloadStatusCode <> 500% as first operand and compare it equals to True

     

    see also this post:

    How to include the logical AND/OR operators in conditionals 

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    I got this for %strcode%

    MichaelAnnis_0-1716930673699.png

    When I played this, with the value at 199, i got the message:

    SET strcode TO 199
    IF (strcode <> 200 AND strcode <> 500) = $'''True''' THEN
    Display.ShowMessageDialog.ShowMessage Title: $'''Correct''' Message: $'''Correct''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed4
    END

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard