Hey all,
I'm stuck on some code (mostly bc I am a VB script newbie)
I am trying to test 2 values that are being pulled into a scene from a datasource formatted as n:ss
I want to test for the smaller of the two values and then use it in a text object.
I've tried a couple ideas but I feel I am limited by my understanding of the syntax. I think I need to convert the time values to numeric values so I can do a math calc on them.
this is what I'm working with and I know there are errors. It is applied to the text object 4on4 Clock
dim PPhomeClock as xpTextObject
dim PPvisClock as xpTextObject
dim FourClock as xpTextObject
dim x
dim y
'this is where I lack knowledge
x = PPhomeClock
y = PPvisClock
Scene.GetObjectByName("PP Clock Home",PPhomeClock)
Scene.GetObjectByName("PP Clock Visitor",PPvisClock)
Scene.GetObjectByName("4on4 Clock",FourClock)
'I know something is missing here too
if x > y then
text = y
else
text = x
end if