Horje
powershell for loop Code Example
powershell for loop
> $array = @("item1", "item2", "item3")
 
> for($i = 0; $i -lt $array.length; $i++){ $array[$i] }
item1
item2
item3
powershell for each loop
> $array = @("item1", "item2", "item3")
 
> foreach ($element in $array) { $element }
item1
item2
item3
 
> $array | foreach { $_ }
item1
item2
item3
powershell for loop
$array = @("Test1", "Test2", "Test3")

for($i = 0; $i -lt $array.length; $i++){ $array[$i] }

output :
Test1
Test2
Test3




Shell

Related
open xcode workspace from terminal Code Example open xcode workspace from terminal Code Example
uninstall scikit learn Code Example uninstall scikit learn Code Example
How to see all the extension installed in visual studio code Code Example How to see all the extension installed in visual studio code Code Example
git updates were rejected because the tip of your current branch is behind Code Example git updates were rejected because the tip of your current branch is behind Code Example
create branch with local changes Code Example create branch with local changes Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13