I Have a variable that capture duration of different event that is higher than my limit.
I need to tantalize those times during my batch production following the rule:
When variable 10 is 0 return total time accumulated of preview losses
When variable 10 is > 0 (I'm having a loss event) it return preview losses accumulated + present loss happening.
Those values will be saved on "Totalizador Perdas" for next calculation - Variable 11
For instance it is just capturing Max value, I know that variable 11 is incorrect but I don't know how to fix