Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated September 2025
Definition
A REPEAT UNTIL (condition) loop is a type of loop that repeats a block of code until a certain condition becomes true. It checks the condition after executing the code block, ensuring that it runs at least once.
Related terms
Condition: A statement that evaluates to either true or false, determining whether to continue or exit from a loop.
Control flow: The order in which statements are executed in a program.
Infinite loop: A type of looping structure where the condition never becomes false, causing it to repeat indefinitely.