RosettaCodeData/Task/Jump-anywhere/PowerShell/jump-anywhere-2.ps1
2026-04-30 12:34:36 -04:00

9 lines
261 B
PowerShell

:myLabel while (<condition 1>)
{
for ($item in $items)
{
if (<condition 2>) { break myLabel }
$item = $x # A statement inside the For-loop
}
}
$a = $c # A statement after the labeled While-loop