Until Something Is True: `while`, `do` and `for`

while repeats steps as long as a condition is true, do runs them at least once and checks at the end, which suits trying again up to three times, and for counts from a start to a finish one step at a time.

Updated

Cheat sheet for the lesson Until Something Is True: `while`, `do` and `for`: while repeats steps as long as a condition is true, do runs them at least once and checks at the end, which suits trying again up to three times, and for counts from a start to a finish one step at a time.
Category
PowerShell
Level
Apprentice
Tags
do-until-loop, for-loop, infinite-loop, powershell, start-sleep, while-loop