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

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 II
Helper II

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 II
Helper II

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.

Mari
Community Support
Community Support

Thanks for updating this thread!

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,006)