Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 482

Conditional Formulas

$
0
0
I was wondering if there's any way to calculate an empty string using these? I have come across this problem so many times, I thought it may be best to see if there's a general solution I could apply elsewhere too.

The reason is that currently, the only way I know how is to add this to 50 measures:

Code:

IfMatch=^$IfMatchAction=[!DisableMeasureGroup 29][!HideMeterGroup 29][!UpdateMeasureGroup 29][!UpdateMeterGroup 29]IfNotMatchAction=[!EnableMeasureGroup 29][!ShowMeterGroup 29][!UpdateMeasureGroup 29][!UpdateMeterGroup 29]
I was hoping there's a better way to achieve the same result? I thought that if I could add a Conditional Formula to the sIconStyle section, I could add it only once. But I know these formulas don't work with strings. Can it be done, simply?

It's a shame there isn't version of this formula that works with strings too. Something like:
ToolTipText=(#CurrentSection#=Saturday|Sunday ? [MeterMorningAlarm] Disable=1 : [MeterMorningAlarm] Disable=0)
would be a great addition! :D

Thanks for your help. :thumbup:

Statistics: Posted by sl23 — Yesterday, 12:23 pm — Replies 3 — Views 83



Viewing all articles
Browse latest Browse all 482

Trending Articles