Hi
I am having the inconvenience that when I have flow branches by switches (if/case), and I close them through case end or if end, and there is a flow variable involved that must take different values in the different branches, at the end of the switch it will take the value that I have set in the first port connected to the closure, even if the port is inactive. As shown in the figure.
The left flow shows the same behaviour you’ve described. No matter which branch is active, the variable is set to the value “top” or “error 0” in your case.