====== Switch..EndSwitch ====== Switch Case [To ] [, [To ]] ... [Case [To ] [, [To ]] ...] [Else ...] EndSwitch The value is sequentially compared to the values listed in the Case branches. If a match is found, the block of code after **Case** line is executed, other branches are not checked and ignored. If the **To** keyword is used in the **Case** clause, the range of numbers in which the must be contained is specified. Note that the numbers you specify are included in a range: "1 to 10" will match numbers from 1 to 10, inclusive. The result of the can be a string. In this case, the use of ranges is not possible, there can only be a list of values: param = "/N" Switch param Case "/N", "/M" ... Case "/C" ... EndSwitch String comparison is case-insensitive. **Notes** If none of the values match, the Else section (if any) will be executed. Expressions can be nested. **Related** [[cond_if]]