Hi @evert.homan_scilifelab.se , good news and glad to hear it works for you.
I think you’ll find that the “case switch” nodes and “If” nodes open up many possibilities, so good to have a play with them, and see an example in action.
One note though about your workflow…Technically, your loop should be wired more like this:
as this then fully satisfies the flow to both the upper and lower (conditional) ports on the Case Switch End. It probably doesn’t matter for your flow, and if it’s working then maybe don’t fix it!
You will see on your flow that the output data port on the Case Switch End is showing as blocked.
This is because by having only a single conditional port going in to Case Switch End node, you’ve effectively tied the “empty table” (lower) port of the Empty Table Switch to the upper (only!) conditional port present on the Case Switch End.
The standard flow variable port on the Case Switch End, that you have attached your upper branch to, is not a conditional port and so is always active.
To make the loop construct I’ve shown above, when adding the Case Switch End in the Modern UI, you would choose Flow Variable as the output port:
and the Excel Writer would then be connected to the Upper conditional Flow port (port 1) rather than the standard “left ear” flow variable port on the top surface of the node.
As you have it currently, this would cause you problems if you were wanting to use the data output port of the Case Switch End to pass the data flow to the Variable Loop End.
As it is, though, since you aren’t using that data output port, it probably doesn’t matter. Just something to note (or bookmark!) for future flows.