# Minimanoeuvre change()

**URL:** <https://forums.ipg-automotive.com/t/minimanoeuvre-change/849>\
**Category:** Tcl & Script Control\
**Tags:** carmaker\
**Created:** [1 March 2024 12:16 UTC](https://forums.ipg-automotive.com/t/minimanoeuvre-change/849 "2024-03-01T12:16:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabanjan\_KAN](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@prabanjan\_KAN](https://forums.ipg-automotive.com/u/prabanjan_KAN)\
**Post date:** [1 March 2024 12:16 UTC](https://forums.ipg-automotive.com/t/minimanoeuvre-change/849/1 "2024-03-01T12:16:50Z")

</div>

Is it possible to check if the variable changes from specifically 0 to 1 or 1 to 0 using any function? I am trying to get starting time and ending time of an event. so that I can calculate the duration of the event.

Eval Qu::var=0  
Eval Qu::start\_time=0  
Eval Qu::end\_time=0  
Eval Car.FxFL==0 ? Qu::var=1  
Eval change(Qu::flying)? Qu::start\_time= Time

---

<div class="post-metadata">

**Author:** ![roberto.ortolan](https://forums.ipg-automotive.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roberto.ortolan](https://forums.ipg-automotive.com/u/roberto.ortolan)\
**Post date:** [20 March 2024 16:41 UTC](https://forums.ipg-automotive.com/t/minimanoeuvre-change/849/2 "2024-03-20T16:41:04Z")

</div>

Good afternoon,  
I would avoid using the value of a quantity ==0 since the solver may not be able to reach the absolute 0. Try using 0.1/0.0.
