switchMulti-branch comparison.Syntaxswitch value { case x: ... }DescriptionIn Go, every case breaks automatically (no break needed).ExampleLoading editor…▶ Try it yourselfExpected outputTueWhen to use?Menu, state control.Related commandsif / else← if / elsefor (three forms) →