I'm having an issue adding a prefix if a measurement is a positive number. I have the negative number from a WebPaser so I do not need to display the "-" sign but if the number is positive I would like the meter to display a "+" sign. It has to be something simple I would think, I just can't wrap my head around it or find anything about it.
Code: Select all
[MeasureGlucoseDelta]
Measure=WebParser
URL=[MeasureSite]
StringIndex=6
IfCondition=MeasureGlucoseDelta < 0
IfTrueAction=[!SetOption MeterGlucoseDelta FontColor 220,20,60]
IfCondition2=MeasureGlucoseDelta > 0
IfTrueAction2=[!SetOption MeterGlucoseDelta FontColor 125,252,0]
DynamicVariables=1
# THIS IS FOR TESTING
[MeasureDeltaSign]
Measure=WebParser
URL=[MeasureSite]
StringIndex=6
IfCondition=MeasureDeltaSign < 0
IfTrueAction="NEG"
IfCondition2=MeasureDeltaSign > 0
IfTrueAction2="POS"
DynamicVariables=1
[meterGlucoseDelta]
Meter=String
MeterStyle=styleLeftText
MeasureName=MeasureGlucoseDelta
MeasureName2=MeasureDeltaSign
X=1
Y=25
W=100
H=20
Text=%2[&MeasureGlucoseDelta]
DynamicVariables=1