pre-test loop
nounUK /ˌpriːˈtest luːp/
US /ˌpriːˈtest luːp/
A pre-test loop is a loop that checks its condition before it does the work inside.
The while loop is a pre-test loop because it tests the condition first.
OTHER MEANINGS
2. A loop in which the controlling condition is evaluated at the start of each pass.
A for loop is often a pre-test loop.
3. A programming construct that may run its body zero times if the condition is false at the start.
Because it is a pre-test loop, the body never runs when the condition is false.
4. A repetition structure whose test appears before the loop body in the source code.
The teacher drew the pre-test loop with the diamond above the rectangle.