Ok, that's more complicated because either value could change independently of the other so you need scripts on both objects to update each other when they change.
The script would be something like this:
`
dim compareText as xpTextObject
scene.GetObjectByName("compareText", compareText)
if cInt(text) >= CInt(compareText.Text) then
text = "{font_green}" & text
else
text = "{font_red}" & text
end if
`
Then you will need a text object called "compareText" that you datalinq to the value (the zero value).
That text object will also need an OnSetText script that updates the other values when it is changing.
That script would be something like this:
`
dim valueText as xpTextObject
scene.GetObjectByName("valueText", valueText)
if cInt(valueText.Text) >= CInt(text) then
valueText.TextWithTags = "{font_green}" & valueText.Text
else
valueText.TextWithTags = "{font_red}" & valueText.Text
end if
`
It would be much easier if it didn't need to live update, then it would just be a single script in the OnOnline that read the value of the "Zero" datalinq value and used it to set the red or green fonts..
#XPression