about Switch - PowerShell | Microsoft Learn
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_switch?view=powershell-7.4
webFeb 28, 2024 · To check multiple conditions, use a switch statement. The switch statement is equivalent to a series of if statements, but it is simpler. The switch statement lists each condition and an optional action. If a condition obtains, the action is performed. The switch statement can use the $_ and $switch automatic variables.
DA: 38 PA: 34 MOZ Rank: 9