Switch

switch [<value>]

Runs the block of script from the case statement that matches the input. The switch command is expected to be followed by one or more case commands that list the various cases for the switch command to choose from. If a ‘default’ case is specified, it will be chosen if no other cases match the input.

Parameters:

  1. The input value to find a matching case for.