Looping logic

Glossary looping logic allows you to code multiple glossary statements using a LOOP command.

The syntax is: LOOP #,VariableName = Initial Value(Increment)

                        ...........................................

 ENDLOOP

 

where # = the number of times to perform the LOOP command. There can be 0 or more comma-delimited variables on the LOOP line.

The VariableName portion of the glossary looping logic (shown above) can only contain alpha characters and is alphabetically incremented (i.e. A, B, C, ......, Z, AA, AB, AC, ......., AZ, BA, BB, BC, etc.).

Glossary looping logic also allows you to specify a starting variable and the number of variables to skip between each loop execution.

The syntax is: LOOP #,VariableName = Starting Variable (n)

                        ...........................................

 ENDLOOP

where # = the number of times to perform the LOOP command.

The VariableName portion of the glossary looping logic (shown above) can only contain alpha characters A thru Z.

(n) is the number of variables to skip between each loop execution.

Glossary looping logic allows you to use variables defined in the Glossary using the DECLARE and DEFINE statements in looping logic.

 

LOOP examples

Related topics:

Glossary Variables