34,333
edits
Changes
→The Windows PowerShell while Loop
}
</pre>
<google>ADSDAQBOX_FLOW</google>
In the above example, the ''while'' expression will evaluate whether the ''$myCount'' variable is less than 100. If it is already greater than 100 the code in the braces is skipped and the loop exits without performing any tasks. This is essentially an "upfront" evaluation process. If, on the other hand, ''$myCount'' is not greater than 100 the code in the braces is executed and the loop returns to the ''while'' statement and repeats the evaluation of ''$myCount''. This process repeats until the value of ''$myCount'' is greater than 100, at which point the loop exits.