miva_sleep is not evaluating.
Tried a while loop but it does not work
I prefer to work with miva_sleep() . What is wrong with code?
Code:
<mvt:assign name="g.sleep_start" value="s.dyn_time_t" />sleep_start: <mvt:eval expr="g.sleep_start" /><br> <mvt:assign name="g.has_sleep" value="miva_sleep(500)" />has_sleep: <mvt:eval expr="g.has_sleep" /><br> <mvt:assign name="g.sleep_end" value="s.dyn_time_t" />sleep_end: <mvt:eval expr="g.sleep_end" /><br> <mvt:assign name="g.sleep_duration" value="g.sleep_end - g.sleep_start" />sleep_duration: <mvt:eval expr="g.sleep_duration" /><br>
Code:
<mvt:assign name="g.while_delay_start" value="s.dyn_time_t" />while_delay_start: <mvt:eval expr="g.while_delay_start" /><br> <mvt:assign name="g.while_delay" value="500" />while_delay: <mvt:eval expr="g.while_delay" /><br> <mvt:assign name="g.while_delay_stop" value="g.while_delay_start + g.while_delay" />while_delay_stop: <mvt:eval expr="g.while_delay_stop" /><br> <mvt:while expr="s.dyn_time_t LE g.while_delay_stop"> </mvt:while> <mvt:assign name="g.while_delay_end" value="s.dyn_time_t" />while_delay_end: <mvt:eval expr="g.while_delay_end" /><br> <mvt:assign name="g.while_duration" value="g.while_delay_end - g.while_delay_start" />while_duration: <mvt:eval expr="g.while_duration" /><br>
Comment