switch
Also written: case
A statement that compares one value against many `case`s and runs the matching one. It's tidier than a long `else if` chain.
Also written: case
A statement that compares one value against many `case`s and runs the matching one. It's tidier than a long `else if` chain.