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.