Hi All,
I wanted to understand how to break out of ForAll loop in powerapps based on a If condition.
Below is the code used for my ForAll loop. According to the below code, I am setting variable dupleave to false initially and the moment it turns to true inside ForAll, it should break out of both the loops.
-----------------------------------------------------
UpdateContext({dupleav: false});
ForAll(ourCollection, (ForAll(ourCollection1, If(LeaveDates = AppliedDates, dupleav = true, dupleav = false))))
-----------------------------------------------------
Thanks,
Vishwas.
Hi Again,
Finally I was able to achieve what I wanted to.
The button was disabled during OnSelect event of date picker by setting the value of global variable to displaymode (edit or disabled based on condition). Now, assigned the global variable to displaymode of the button and it is working as expected.
Thanks for all the help and inputs!!
Vishwas.
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473