34,333
edits
Changes
no edit summary
=== The PowerShell ''for'' Loop ===
Windows PowerShell ''for'' loops are ideal in situations where the same sequence of statements need to be repeated a specific number of times. Suppose, for example, that you have a requirement to add a number to itself ten times. One way to do this might be to write the following C# PowerShell code:
<pre>
foreach (''$variable'' in ''$collection'')
{
}
current color is blue
</pre>
<google>BUY_WPS_BOTTOM</google>