Hey everyone,
I am new to PowerApps and struggling with where to store some logical tests that I want to evaluate upon starting the app in order to determine the fill color of a status bubble.
In App.OnStart, I have established a counter variable by using: Set(counter, 0)
I then would like to use several if statements to increment this counter and then a switch statement to determine the fill color based on the counter value. DaysUp, Off, and Rebooted are all fields from my datasource and I need the counter value to be unique to each data field. My if statements are:
If(DaysUp < 10, counter + 1);
If(Off = "true", counter + 1);
If(Rebooted = "true", counter + 1);
I would love feedback on my syntax to ensure it is correct as well as advice on where I should place these logical tests so that I can use my switch statement, Switch(counter, 1, Color.Yellow, 2, Color.Red, 3, Color.Red, Color.Green), to determine the fill color.
Thank you in advance.