Forked from meeyou33/gist:73bc1905921352c5bf77eaaf1144dbf2
Last active
February 20, 2025 14:28
-
-
Save IISResetMe/571ac648488e7b398d4cbcdc774f502b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$array = 1..10 | |
for ($i = 0; $i -lt $array.Length; $i++) { | |
Write-Host "Loop iteration $($i + 1): #$($array[$i])" | |
if ($i -eq $array.Length - 1) { Write-Host "Last loop!" } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment