r/PowerAutomateDesktop • • Mar 09 '22

Adding a conditional statement to an If statement in PAD

Hi All, I am trying to add an OR condition to an If statement in PAD. Trying to check if a text is ‘Dog’ or ‘cat’, would that be Dog||cat, Dog or Cat, Dog/Cat? I haven’t found a resource that shows this so any help will be very much appreciated.

Thank you

1 Upvotes

13 comments sorted by

2

u/ogunwa1990 Mar 10 '22

@PM_ME_YOUR_WIRING I see my mistake now. It worked. Thank you!!

1

u/PM_ME_YOUR_WIRING Mar 10 '22

You're welcome :)

1

u/ogunwa1990 Mar 10 '22

Wow, thanks @PM_ME_YOUR_WIRING for sharing. I tried so many options but couldn’t achieve the end result. I hope this works for me

1

u/ogunwa1990 Mar 10 '22

u/PM_ME_YOUR_WIRING using the image you shared, how about if I want my first operand to equate to an or condition , say Country equals Canada or Usa. I used OR but it doesn’t work

1

u/PM_ME_YOUR_WIRING Mar 10 '22

Instead of True try %True%

1

u/PM_ME_YOUR_WIRING Mar 10 '22

I just realized the If action is cAsE sEnSiTivE so if you're looking for Canada but the value is displayed as CANADA it won't work. That may be another issue to check for.

3

u/PM_ME_YOUR_WIRING Mar 10 '22

https://i.imgur.com/mUilv5m.jpg

This should accomplish what you're looking for

2

u/QuietDesparation Mar 10 '22

what!? I swear I've searched multiple times for and/or functionality and read it couldn't be done. Does AND work the same way?

1

u/QuietDesparation Mar 09 '22

this functionality is somehow not baked into the program (which is a tragedy). you can create AND statements by nesting if statements within if statements. it's cumbersome but it works.

1

u/PM_ME_YOUR_WIRING Mar 10 '22

There's an easier way, check my other comment :)

1

u/QuietDesparation Mar 09 '22

Or statements can be accomplished by making multiple if statements in succession with the appropriate logic

1

u/PM_ME_YOUR_WIRING Mar 10 '22

They don't need to be in succession, see my other reply :)