While

LRM §9.6.

While executes statements as long as an expression evaluates as true.

Syntax:

while ( expression )
  statement

Description:

The while statement repeats the statements as long as the expression remains true.

The statements must be enclosed in a begin-end or fork-join block if more than one statement is to be executed.

Example:

while (Nmbr)
  begin
    Cnt = Cnt + 1;
    Nmbr = Numbr >> 1;
  end

See also:

For, Forever, Repeat