web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to add multiple va...
Power Automate
Unanswered

How to add multiple variables in if action in PAD?

(1) ShareShare
ReportReport
Posted on by 357
Hi Team,

I have 3 variables type boolean


B


I want to check if any one of variable is true then 

if action 'then' should exceuted

how to add 3 variables in if action of PAD
I have the same question (0)
  • Sanket1 Profile Picture
    357 on at
    Why ms power automate forum is very slow for response ?

    Uipath forum gives response in 5 min for query.

     
  • Verified answer
    Sayan Profile Picture
    818 Super User 2025 Season 2 on at
     
    In PAD you can try with the below Expression 
     
     
    This is for OR operator and for AND operator you can use '&'
     
    To explore more, you can check the below video.
     
     

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    If my suggestion helps you, please gives it a Like and Marks as a Solution. Which motivates to solve more problems.

    Thanks,

    Sayan Patra

    RPA Developer

  • Sayan Profile Picture
    818 Super User 2025 Season 2 on at
    As after new update of Power Platform community. It became slower. Hope it will solve ASAP.
  • Suggested answer
    WillSG Profile Picture
    352 Moderator on at
    Hi @Sanket I hope you are doing well.

    Power Automate Desktop allows you to validate 3 or more variables into a Set Variable action, but if you use the If condition action, you have to use it how Sayan just responded.

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

    This is one approach to accomplish this task:

    SET A TO $'''TRUE'''
    SET B TO $'''r'''
    SET C TO $'''r'''
    IF Contains($'''%A% | %B% | %C%''', $'''True''', True) THEN
        Display.ShowMessageDialog.ShowMessage Title: $'''YOU ROCK!''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: True ButtonPressed=> ButtonPressed
    END

    And this is the second approach utilizing OR, which you can utilize AND as well in case you need 2 or 3 variables to contain the keyword TRUE.

    SET A TO $'''TRUE'''
    SET B TO $'''r'''
    SET C TO $'''r'''
    SET Validation TO A = True OR B = True OR C = True
    IF Contains(Validation, $'''True''', True) THEN
        Display.ShowMessageDialog.ShowMessage Title: $'''YOU ROCK!''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: True ButtonPressed=> ButtonPressed
    END

    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
    JeffreyDSmith Profile Picture
    69 on at

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard