Topic summary
Control structure

Extracted from the Wikipedia article Control flow.
Loop-and-a-half problem
A subtlety of this solution is that the condition is the opposite of a usual while condition: rewriting whilecondition ... repeat with an exit in the middle requires reversing the condition: loop ... if notconditionexit ... repeat. The loop with test in the middle control structure explicitly supports the loop-an-a-half use case, without reversing the condition.