# Switch node, check all mode and otherwise - why does otherwise not match

**URL:** <https://discourse.nodered.org/t/switch-node-check-all-mode-and-otherwise-why-does-otherwise-not-match/96794>\
**Category:** Core Development\
**Created:** [29 April 2025 06:29 UTC](https://discourse.nodered.org/t/switch-node-check-all-mode-and-otherwise-why-does-otherwise-not-match/96794 "2025-04-29T06:29:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 April 2025 06:49 UTC](https://discourse.nodered.org/t/switch-node-check-all-mode-and-otherwise-why-does-otherwise-not-match/96794/4 "2025-04-29T06:49:43Z")

</div>

> [@gregorius](#):
>
> moving the "otherwise" to the top of the rules causes it to match _and_ the payload = 2 also to match.
> 
> Move the otherwise to the bottom of the list and it doesn't match.

This is a known condition and has been debated before:

- [[Feature Request]Help prevent crossing wires from Switch node - #43 by dceejay](https://discourse.nodered.org/t/feature-request-help-prevent-crossing-wires-from-switch-node/75233/43)
- [[Feature Request]Help prevent crossing wires from Switch node - #51 by knolleary](https://discourse.nodered.org/t/feature-request-help-prevent-crossing-wires-from-switch-node/75233/51)

> [@gregorius](#):
>
> In "stop after one" mode, the otherwise matches but not the payload = 2 rule.

As above. And if you think about it, it makes sense (it stopped after one match)

---

_[View the full topic](https://discourse.nodered.org/t/switch-node-check-all-mode-and-otherwise-why-does-otherwise-not-match/96794)._
