Active and Cleared time alarm is the same

Continuing the discussion from Alarm Cleared at the same time it is set active:

Im working on Ignition 8.1.35. I have a tag configured on 'On Condition' Mode and I have the same problem, this is the configuration

The script (just in case):

if({[.]maintenance}=false && {[.]manualOff} = false,
if({numPhases}=1,0,1)&&
if({numPhases}=2,(({[.]L1} < 80 && {[.]L2} >= 80) || 
                  ({[.]L2} < 80 && {[.]L1} >= 80)), 1)&& 
if({numPhases}=3,((({[.]L1} < 80) && ({[.]L2} >= 80 || {[.]L3} >= 80))||
                  (({[.]L2} < 80) && ({[.]L1} >= 80 || {[.]L3} >= 80))||
                  (({[.]L3} < 80) && ({[.]L1} >= 80 || {[.]L2} >= 80))), 1),false)

The DB:

That's a rather complex expression. Are you sure it's actually evaluating the way you want, across all branches?

I'd strongly recommend refactoring some of the 'intermediate' checks out into dedicated expression tags, to simplify the logic inside the expression itself.