Loop | Return | Continue | Break |
---|---|---|---|
Normal Expectation | NextItem | NextItem | ExitLoop |
.foreach{} | NextItem | ExitLoop | ExitLoop |
foreach ($y in $x) | ExitLoop | NextItem | ExitLoop |
for ($i;$i -lt 5;$i++) | ExitLoop | NextItem | ExitLoop |
Foreach-Object -InputObject @() | NextItem | NextItem | NextItem |
Switch | ExitLoop | ExitLoop | ExitLoop |
While | ExitLoop | NextItem | ExitLoop |
Last active
June 3, 2022 03:01
-
-
Save JustinGrote/90494428c5b9768cab89a450be74efbc to your computer and use it in GitHub Desktop.
Reference Table for Loop Behavior in Powershell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Love this! Great stuff!