cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

IF with multiple OR

Hi all.. 

I just simply want to make this formula works:

If(txt_MS_manual_ItemCategory.Text = "NC Baloon" || txt_MS_manual_ItemCategory.Text = "Comply Baloon" || txt_MS_manual_ItemCategory.Text = "Cutting Baloon", "Baloon", "Stent DES", "Stent BMS", "Guidewire PCI")

My condition is:
The result will be "Baloon" IF the text is "NC Baloon" OR "Comply Baloon" OR "Cutting Baloon"
Else will be anything else beside those baloon ("Stent DES", "Stent BMS", "Guidewire PCI")

I can't make it work though, 

Please help. 

Thanks.

pytbyt

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Post Prodigy
Post Prodigy

Re: IF with multiple OR

FYI, 

We also can done it like this:

If(
    txt_MS_manual_ItemCategory.Text = "NC Baloon" || "Comply Baloon" || "Cutting Baloon", 
    "Baloon", 
    txt_MS_manual_ItemCategory.Text
)


Cheers.

 

pytbyt 

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: IF with multiple OR

@PytByt 

For the else condition you should write your text in the 3rd argument as shown below.

If(
    txt_MS_manual_ItemCategory.Text = "NC Baloon"
    || txt_MS_manual_ItemCategory.Text = "Comply Baloon"
    || txt_MS_manual_ItemCategory.Text = "Cutting Baloon", 
    "Baloon", 
    "Else condition text here"
)

 

It is not necessary or possible to list out several options in the format "Stent DES", "Stent BMS", "Guidewire PCI".

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

Highlighted
Post Prodigy
Post Prodigy

Re: IF with multiple OR

Hi @mdevaney 

Thank you for the reply, i found out that i can use the control object it self as ELSE as in below formula.

If(
    txt_MS_manual_ItemCategory.Text = "NC Baloon"
    || txt_MS_manual_ItemCategory.Text = "Comply Baloon"
    || txt_MS_manual_ItemCategory.Text = "Cutting Baloon", 
    "Baloon", 
    txt_MS_manual_ItemCategory.Text
)

 
I hope this will also help for those who sometimes confused on using formula like i do. 

Cheers, 

Regards.

pytbyt

Highlighted
Post Prodigy
Post Prodigy

Re: IF with multiple OR

FYI, 

We also can done it like this:

If(
    txt_MS_manual_ItemCategory.Text = "NC Baloon" || "Comply Baloon" || "Cutting Baloon", 
    "Baloon", 
    txt_MS_manual_ItemCategory.Text
)


Cheers.

 

pytbyt 

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (9,623)