Repeat

LRM §9.6.

Repeat executes statements a specified number of times.

Syntax:

repeat ( expression )
  statement

Description:

The repeat statement executes the statement a fixed number of times. The number of executions is set by the expression. This expression may be an integer, a variable, or an expression. A variable or expression is only evaluated when the loop is first entered.

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

Example:

repeat (LoopNumber)
  A = A + ~B;

Notes:

See also:

For, Forever, While