while loop

Repeats until false

A while loop is a programming control structure that repeats a block of code as long as a specified condition remains true.

The loop checks the condition before each iteration—if true, it executes; if false, it exits.

The while loop kept running until the counter reached zero.

Careless conditions create infinite loops that never terminate.

programming

iteration

Repeated procedural pass

increment · decrement · syntax · algorithm · code · break · continue · execute · flowchart · scope

iteration

cycle

Repeating sequence of events

pass · round · tick · polling · check · evaluate · sequential · batch processing · countdown · accumulator

infinite

bug

Crawling creature or defect

  • crashSudden violent impact
  • freezeBecome solid from cold
  • hangSuspend from above

stuck · deadlock · timeout · overflow · unresponsive · halt · runaway · spin · logic error · off-by-one

Opposites
iteration control mechanism

while loopfor loop

Counted repetition structure

execution pattern

while loopif statement

Code that checks conditions

termination · exit

Family

while, loop, whiles, whilst, loops, looped, looping, loopy

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G