Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.23 KB

File metadata and controls

24 lines (18 loc) · 1.23 KB

Break and Continue without loop

The statements break and continue used without loops are not errors. They work for a loop in a parent scope, even if it is not in the same script. If a loop does not exist then the invocation silently stops.

Note that .test.ps1 has to call Test-Break.ps1 and Test-Continue.ps1 using PowerShell.exe. Otherwise loops of Invoke-Build.ps1 (the tests runner) are affected.

Scripts