Press "Enter" to skip to content

Break vs Throw in Powershell

Patrick Gruenauer explains the differences between two control statements:

If you are a PowerShell scripter, you may have come across two code statements that are not unique to PowerShell: Break and Throw. In this blog post I will carry out some examples to shed some light on this very important statements.

If you’re confused about when to use which, check out Patrick’s clear explanation.