WHILE(4)

Table of Contents

Name

while looping construct

Synopsis

%while C-expression %loop
template-stuff
%end-loop

Description

The while template construct provides a general purpose looping construct for use during product generation in template and proc sections. The C-expression is repeatedly evaluated. Each time its value is TRUE the template-stuff making up the body of the loop is generated to the product. The looping terminates when the expression becomes FALSE. Variables used in the C-expression are normally declared in the declare section of the product description file. Functions and variables that are part of the ivy*meta SDTB run-time library can also be used in the C-expression.

Example

%while num != max %loop
Record %d(num) contains:
%call showrecord(num)
%{num++;}
%end-loop

See Also

DECLARE(3)
IF(4)
CASE(4)
FOR(4)
FORALL(4)


© 1990 Lucent Technologies, Inc
© 1998 Harmony Software, Inc