Powershell - For Loop


Advertisements

The following scripts demonstrates the for loop.

> $array = @("item1", "item2", "item3")
 
> for($i = 0; $i -lt $array.length; $i++){ $array[$i] }
item1
item2
item3
powershell_looping.htm
Advertisements