Line3 in the first picture is [ELSEIF: Do something], so after that you have "imaginary Line4" with [ELSE: Do nothing].
Line3 in 2nd picture is [ELSE: Do something].
In your first picture, Line3 fired because the variable: pause is updated to 1in line2.
I disagree that it's an ELSEIF
IF <condition1> THEN <action1> ENDIF
IF <condition2> THEN <action2> ENDIF
IF <condition1> THEN <action1>
ELSEIF <condition2> THEN <action2>
In the former BOTH actions can execute (and in fact did; thus the OP's problem).
In the latter only ONE action can execute.