switch statement
Also written: switch
A statement that compares one value with a list of cases and runs the first that matches, with default for no match. Each case ends by itself, so no break is needed.
Also written: switch
A statement that compares one value with a list of cases and runs the first that matches, with default for no match. Each case ends by itself, so no break is needed.