PowerShell - Control Flow
What is the main difference between a
while loop and a do-while loop in PowerShell?while loop and a do-while loop in PowerShell?while loop behaviorwhile loop checks the condition before running the code inside the loop. If the condition is false initially, the loop body does not run at all.do-while loop behaviordo-while loop runs the code inside the loop once before checking the condition. It then repeats if the condition is true.while checks the condition before running the loop body; do-while runs the loop body once before checking. -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions