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.

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.