I'm having trouble with "if" statements....
Below I have two actions, one calling the other after 2 seconds.
All seems to work fine except for the "if" statement.
I can trace-out "transtime" and "mytime" at-will in either action.
But I can't get the "if" statement to work.
Meaning "what the heck...." never traces out.
<action name="gettranstime">
showlog(true);
set(mytime,get(plugin[trans].totaltime));
trace('Original time=',get(mytime));
sub(mytime, 2);
trace('TwoSec time=',get(mytime));
delayedcall(2.0, checktranstime() );
</action>
<action name="checktranstime">
set(transtime,get(plugin[trans].time));
if(transtime >= mytime,
trace('what the heck....');
);
trace('Trans Time....',plugin[trans].time);
trace('My Time=',get(mytime));
delayedcall(0.1, checktranstime() );
</action>
Anyone with a fresh pair of eyes see what I'm screwing up?