Press "Enter" to skip to content

Break, Return, and Exit in Powershell

Patrick Gruenauer contrasts three ways of halting execution in Powershell:

The break statement provides a way to exit the current control block (loop!), Technical reference:

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_break?view=powershell-7

Click through for examples of each operator.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.