PowerShell - Control Flow
Which of the following is the correct syntax to use
break inside a PowerShell for loop?break inside a PowerShell for loop?break syntax in PowerShell loopsbreak statement is used inside an if block with curly braces or as a single statement.if ($i -eq 3) { break }. Options A and B misuse continue or have misplaced statements. for ($i=0; $i -lt 5; $i++) { break if ($i -eq 3) } has incorrect placement of break.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions