Changes

Jump to: navigation, search
no edit summary
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Windows PowerShell 1.0 Looping with the for and foreach Statements|Previous]]<td align="center">[[Windows PowerShell 1.0 Essentials|Table of Contents]]<td width="20%" align="right">[[The Windows PowerShell 1.0 switch Statement|Next]]</td>
<tr>
<td width="20%">Windows PowerShell 1.0 Looping with the for and foreach Statements<td align="center"><td width="20%" align="right">The Windows PowerShell 1.0 switch Statement</td>
</table>
<hr>
 
 
<google>BUY_WPS</google>
 
 
The Windows PowerShell ''for'' and ''foreach'' loops described in the chapter entitled [[Windows PowerShell 1.0 Looping with the for and foreach Statements]] works well when you know in advance how many times a particular task needs to be repeated in a program. There will, however, be instances where code needs to be repeated until a certain condition is met, with no way of knowing in advance how many repetitions are going to be needed to meet that criteria. To address this, Windows PowerShell provides the ''while'' and ''do ... while'' loops. Those familiar with other programming and scripting languages will find the Windows PowerShell implementations of these loops to be quite familiar.

Navigation menu