[Feature Request]Help prevent crossing wires from Switch node

Just playing catch up on this whole thread.. but as I write I see @TotallyInformation has posted along the lines of my gut feeling here.

When you have 'check all rules' enabled (the default), you can have multiple 'otherwise' rules, and each acts based on the rules above it.

For example, given the rules:

  1. == A
  2. == B
  3. otherwise
  4. == C
  5. == D
  6. otherwise

If you inject 'A' you will get an output on 1 and 6
If you inject 'C' you will get an output on 3 and 4

Confusingly, if you inject 'RANDOM', you only get an output on 3 - I expected that to trigger both 3 and 6.

So there is already some inconsistent (and possibly incorrect) behaviour around the otherwise rule that has been there for years.

But regardless of that, this proposal would change what an otherwise rule at the top of the list does - which is a breaking change for existing flows. That means we have to be really really sure this is solving a real issue. I'm not sure "avoiding crossed wires" is a good enough reason to potentially break flows.

1 Like