- Messages
- 497
- Country

This is driving me crazy !!
<GaugeString>%(8)%{case}%{ :4 }RAIN%{ :8 }SNOW%{end}</GaugeString>
Should Display SNOW, but instead, displays NOTHING.
-----------
Once I do get the above to work, what I am really trying to do is display RAIN or SNOW or NOTHING, dependant upon
AMBIENT PRECIP STATE Precip state (bit field) Mask
2 = None
4 = Rain
8 = Snow
How do I Ievaluate the above to be 8, 4 or 2 ( and mabe 12 ? RAIN & SNOW)
Do I have to 'AND' the mask with 15, or can I use the mask directly ?
Final result should be a GaugeString, that displays "SNOW" or "RAIN" or ""
-----
Any help or example would be greatly appreciated. Thanks
Geoff
<GaugeString>%(8)%{case}%{ :4 }RAIN%{ :8 }SNOW%{end}</GaugeString>
Should Display SNOW, but instead, displays NOTHING.
-----------
Once I do get the above to work, what I am really trying to do is display RAIN or SNOW or NOTHING, dependant upon
AMBIENT PRECIP STATE Precip state (bit field) Mask
2 = None
4 = Rain
8 = Snow
How do I Ievaluate the above to be 8, 4 or 2 ( and mabe 12 ? RAIN & SNOW)
Do I have to 'AND' the mask with 15, or can I use the mask directly ?
Final result should be a GaugeString, that displays "SNOW" or "RAIN" or ""
-----
Any help or example would be greatly appreciated. Thanks
Geoff
