index
The index function enables you to determine which instance of a loop the translator is currently accessing.
Note: Support on Demand requires a user name and password, so you must register if you have not completed this step already.
Syntax
Use this syntax:
index(integer_variable);
where: integer_variable = integer variable that indicates the
hierarchical level for which you want to
determine the loop count
Example
An example of this function follows:
index(1);
//This extended rule is located on the ILD group in the following figure.
//This determines the current loop count for the first level (ODD) in
//the hierarchical structure.