While Loop

Noun · Development

Definitions

  1. A control flow statement that repeatedly executes a block of code as long as a specified boolean condition evaluates to true, checking the condition before each iteration. If the condition is false initially, the body never executes.

    In plain English: A programming instruction that repeats a set of actions over and over as long as a certain condition remains true.

    Example: "The while loop keeps reading from the socket until we get the end-of-message delimiter or the connection drops."

Related Terms