Changes

Jump to: navigation, search
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'')
{
# statements to be executed for each element
}
current color is blue
</pre>
 
<google>BUY_WPS_BOTTOM</google>

Navigation menu