So I have a skin that displays a service level and changes its colour from red, to yellow, to green depending on the number. If the number is 0, the colour should be white to indicate the value isn't being read.
Everything is working correctly, except the 0 value;
A much better solution would be to use IfConditions instead of IfActions. IfActions are old and have their own limits, IfConditions are much more reliable.
For example replace the [MeasureSrvLvlRed], [MeasureSrvLvlGreen] and [MeasureSrvLvlBlue] measures with the following ones:
See that I commented out the old conditions, just to can easily check the new ones. I also commented out the DynamicVariables=1 option, because it's not needed and as such, doesn't worth to use it.
Additional tip: !Rainmeter... is a deprecated bang prefix, don't use it.
JayOtt wrote: ↑March 13th, 2019, 1:19 pm
Beautiful! I wasn't aware of IfCondition! Works perfectly, thank you.
Since IfCondition is a newer option than IfActions and it also has a lot of advantages (like the possibility to set any number of conditions, not just three like IfBelow, IfEqual and IfAbove), it's always better to be used.
I'm glad if you got it working well.