Created
February 20, 2025 14:23
-
-
Save meeyou33/73bc1905921352c5bf77eaaf1144dbf2 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 #$($array[$i])" | |
if ($i = $array.length) { Write-Host "Last loop!" } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment