Welcome to the forum @Leonti
So we can understand better could you post the flow you currently have so we can see how you are handling the switches. Export just the nodes to do with the switch handling. See this post for how to post flows here - How to share code or flow json