Powershell Tip #4: Difference between Break and Continue

By | July 9, 2015

Tip: The difference between Break and Continue statements:

Continue : the loop continues but skips just the current iteration.
Break : exits a loop or a switch statement.

difference-break-continue

Note: to exit a function, use the return statement.


previous-buttonnext-button

2 thoughts on “Powershell Tip #4: Difference between Break and Continue

  1. Pingback: Powershell Tip #5: Automatic variable ($PSBoundParameters) | Powershell Guru

  2. Pingback: Powershell Tip #3: Change default parameter values ($PSDefaultParameterValues) | Powershell Guru

Leave a Reply

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