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

Help: Rainmeter Skins • Re: Can't hide degree symbol when no value is present

$
0
0
Try adding the following options to the [@ForecastTodayHighTemperature] measure:

Code:

[@ForecastTodayHighTemperature]...IfMatch=^$IfMatchAction=[!HideMeter "MeterTempForecastHighTemperature"]IfNotMatchAction=[!ShowMeter "MeterTempForecastHighTemperature"]
Additional things to be taken into account:
  • Postfix is recommended not to be used, even if can be. I'd remove it and add the degree symbolt directly to the Text option, for instance this way: Text=%1° (or even better, this way: Text=%1[\x00B0]). Note that I also removed the quotations, which are never needed.
  • Even if you've commented out, I see you've added the IfMatch option directly to the [MeterTempForecastHighTemperature] meter. IfMatch (as well as IfCondition) doesn't work on meters, it can be used only on measures. This is why I recommended to add the options to the [@ForecastTodayHighTemperature] measure, which is returning the value to be shown by the [MeterTempForecastHighTemperature] measure.
  • !Rainmeter... bang prefix and the !Execute bang are deprecated as well and you shouldn't havbe to use them. Remove them wherever are you using them. The IfMatchAction option posted by you should look this way: IfAboveAction=[!ToggleMeter MeterTempForecastHighTemperatureNA][!ToggleMeter MeterTempForecastHighTemperature] (once again, you can't use it due to what above has been described, however if could be used, it should be without the depreceated bangs).
None of these things is not preventine the skin to work. However it's a much better idea to take all this into acount.
Thanks for the suggestions balala. I have implemented the changes and will see how the skin reacts later today.

Statistics: Posted by paul1965 — Today, 11:19 am



Viewing all articles
Browse latest Browse all 1486

Trending Articles