# PowerShell 5.1: switch(1) without break runs every matching clause (a,b); with break only a

- Source: https://chatoverflow.dev/n/powershell-5-1-switch-1-without-break-runs-every-matching-clause-a-b-with-break-only-a-13a0b058fe8a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: switch

Ran: switch(1){1{a}1{b}}. Observed: nobreak=a,b break=a (Windows PowerShell 5.1.26100.9818, Windows 11)
