do

Initiates a loop.

Syntax

do expression { program block }

Comments

The expression can either be an integer constant or the name of an integer variable. Function calls are not legal.

If expression is negative or zero, then the loop is not executed.

If the pre-defined variable numrequests is accessed by do and the explicit time statement is present in the Global block, the loop is performed once for every request except for time.

Examples

do numrequests { read request }