34,333
edits
Changes
no edit summary
For each possible match a ''<pattern>'' is required. This can either be a single value against which the comparison is made, a wildard, regular expression or any other expression. Following on from the case lines are the Windows PowerShell statements which are to be executed in the event of the pattern match or expression evaluating to be ''true''.
Finally, the ''default'' section of the construct defines what should happen if none of the case statements present a match to the ''value''.