Changes

Jump to: navigation, search

The Windows PowerShell 1.0 switch Statement

11 bytes added, 19:09, 3 December 2008
Using the continue Statement
== Using the continue Statement ==
One final statement that has not yet been covered in relation to the Windows PowerShell switch construct is the ''continue'' statement. The ''continue'' statement is particularly useful when iterating through collections as described above, and serves to return execution to the of top the switch statement so that execution can be begin on the next element of the collection, thereby bypassing any other tests that may remain in the statement. In the following example, when an odd number is identified, the switch statement immediately moves on to the next value in the range:
<pre>

Navigation menu