◄Keywords► ◄Contents► ◄Index► ◄Back► WHILE <expression> DO <statement-block> Description A WHILE statement is a loop that executes only if the expression is True. The test for the expression is at the top of the loop. If the expression is True, the statement block is executed. If it is False, control is passed to the statement that follows the WHILE statement. An expression that never resolves to False creates an infinite loop. See also: FOR, Loop statement, Pascal Statement Hierarchy, REPEAT