exit-controlled loop
nounUK /ˈɛksɪt kənˈtrəʊld luːp/
US /ˈɛksɪt kənˈtroʊld luːp/
A loop that checks its stopping rule at the end, so it always runs at least one time.
The program used an exit-controlled loop to ask for a password until the right one was typed.
RELATED WORDS
OTHER MEANINGS
2. A loop whose test happens after the body runs, so the body executes before any check.
In a do-while loop, the condition is checked after the code runs.
3. A repeat structure that keeps going until its ending test says to stop.
The robot moved forward in an exit-controlled loop until it touched the wall.
4. A programming pattern where the stopping question comes at the bottom of the loop.
Beginners often write an exit-controlled loop when they want the action to happen at least once.