case / when
Anchor link to section titled "case / when"
Creates a switch statement to execute a particular block of code when a variable has a specified value. case initializes the switch statement, and when statements define the various conditions.
You can optionally add an else statement at the end of the case to provide code to execute if none of the conditions are met.