Changes

Jump to: navigation, search
no edit summary
== The continue Statement ==
The ''continue'' statement causes all remaining PowerShell statements in a loop to be skipped, and execution to be returned to the top of the loop. In the following example, the ?????? ''write-host'' cmdlet is only called when the value of variable ''$ij'' is an even number (i.e divisible by 2 with no remainder):
<pre>
</pre>
The ''continue'' statement in the above example will cause the WriteLine ''write-host'' call to be skipped unless the value of variable ''i$j'' can be divided by 2 with no remainder. If the ''continue'' statement is triggered, execution will skip to the top of the while loop and the statements in the body of the loop will be repeated (until the value of ''i$j'' exceeds 19), resulting in the following output:
<pre>

Navigation menu