Case SWITCH End (Flow Variable) Unexpected Behaviour

The nodes in the two scenarios (refer screenshot) are the same except for the node order of the second and third inports of the Case SWITCH End node.

Could someone help to explain why the resulting value of var_switch is “false” for the first case and “true” for the second case, even though the “Use first non-inactive port” is selected?

Workflow attached:

Case SWITCH End Test.knwf

Thank you for your help!