cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GenericoName
Helper I
Helper I

Prioritising If Statements

Hi everybody,

 

Is it possible to prioritise certain variables/if statements, or would I need to make another kind of statement?

For example, I have a button that is disabled if variable 1 is false. If variable 1 is true, the button is enabled. However, I also want a second variable to disable the button regardless of whether or not variable 1 is true. How would I achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
GenericoName
Helper I
Helper I

Nevermind, I figured it out. Only reason it wasn't working for me was a typo. For those who are having a similar issue:

If(V1, Result1, V2, Result2, Result3)


Variable 1, if true, will force result 1 to happen and will not query variable 2. If variable 1 is false, variable 2 will be queried and the subsequent result will be chosen based on that.

View solution in original post

2 REPLIES 2
GenericoName
Helper I
Helper I

Nevermind, I figured it out. Only reason it wasn't working for me was a typo. For those who are having a similar issue:

If(V1, Result1, V2, Result2, Result3)


Variable 1, if true, will force result 1 to happen and will not query variable 2. If variable 1 is false, variable 2 will be queried and the subsequent result will be chosen based on that.

View solution in original post

Mari
Microsoft
Microsoft

Thanks for updating this thread!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,563)