Announcements
I have 4 labels, and I wanna check if 3 has a value less than '19', but I don't wanna use 'if', there is another way to do that?
I tried with is match...CountIf... and Find...
I am stuck on the logicThanks
There is no way to do this other than using If() statements. Put something like the following in the OnVisible property of the screen or some other "On" property that will fire when you want the label to change.
Set(varcount,0); If(Value(Label1.Text) < 19,Set(varcount, varcount+1)); If(Value(Label2.Text) < 19,Set(varcount, varcount+1));If(Value(Label3.Text) < 19,Set(varcount, varcount+1));If(Value(Label4.Text) < 19,Set(varcount, varcount+1))
once that action is done varcount will contain the number of labels greater than 19.
Hello @Gorilla_8,
As suggested by @Pstork1 there is no other way than If condition to achieve your case Some case we can use Switch Statement but we cannot make a condiition check over there
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
Thanks guys @rampprakash and @Pstork1!I think in another one, I make a "average" between the labels to show me the result, works pretty well too.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 377 Most Valuable Professional
11manish 165 Super User 2026 Season 2
MS.Ragavendar 110 Super User 2026 Season 2