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 pass three variabl...
Power Automate
Suggested Answer

How pass three variable into if condition

(1) ShareShare
ReportReport
Posted on by 16
Hi Team,
 
I pass three variable into if condition,
I have pass  this condition - %varibale1 OR variable% OR %variable% in IF Condition
i have not get result
 
please  give me solution
As possible as
 
 
Thanks and Regards
Ashwini Raut
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    Assuming all the 3 variables are boolean, try this 
     
     
     
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     
  • Suggested answer
    WillSG Profile Picture
    352 Moderator on at
    Hi ashuraut I hope you are doing well.

    Power Automate Desktop allows you to validate 3 or more variables into a Set Variable action, but not in an if condition. The if condition will actually give you an error

    Please see and use the sniped Code below, this will help you get a better idea of the process and results:

    SET NewVar1 TO 1
    SET NewVar2 TO 2
    SET NewVar3 TO 3
    SET NewVar4 TO NewVar1 = 1 OR NewVar2 = 2 OR NewVar3 = 3
    SET NewVar5 TO NewVar1 = 2 OR NewVar2 = 6 OR NewVar3 = 5




     
    PS: Even if ONLY one of the variables match the value defined, the results will be True.
    So, if the 3 variables need to match the results, instead of OR considered using AND

    Please let me know if it works, happy automating!

    If I have addressed your inquiry successfully, kindly consider marking my response as the preferred solution. If you found my assistance helpful, a 'Thumbs Up' would be greatly appreciated.
     
    Additionally, I offer specialized consultancy and development services leveraging PAD. If you're interested in exploring these services further, feel free to DM me, and we can initiate a discussion.

    Finally, here is my YOUTUBE CHANNEL please subscribe to my channel and connect with me on LinkedIn Profile.

    Kind regards,
     
    Will SG
    Founder & Director
    RAMSolutions
    www.ramscr.com
  • Suggested answer
    Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 1 on at
    Hi,
    Please find the above image.
    SET strVar1 TO 1
    SET strVar2 TO 2
    SET strVar3 TO 3
    IF (strVar1 = 1 OR strVar2 = 2 OR strVar3 = 3) = $'''true''' THEN
    END
     
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
    Regards,
    Riyaz
     
     
     

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 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard