Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell for each loop

> $array = @("item1", "item2", "item3")
 
> foreach ($element in $array) { $element }
item1
item2
item3
 
> $array | foreach { $_ }
item1
item2
item3
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #powershell #loop
ADD COMMENT
Topic
Name
3+1 =