Name

While Keyword

Syntax

while Expression do Statement

Description

The while statement is the same as it is in standard Pascal. While the Expression is True, Delphi repeatedly executes the Statement. If the Expression is False the first time it is tested, the Statement never executes.

See Also

Boolean Type, Break Procedure, Continue Procedure, Do Keyword, For Keyword, Repeat Keyword

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.