Comparing Index-Names and Index Data Items

Comparisons involving index-names and/or index data items conform to the following rules:

Table 1 shows valid comparisons involving index-names and index data items.

Table 1. Comparisons Involving Index Names and Index Data Items
Operands Compared Index-Name Index Data Item Data-Name Literal Arithmetic Expression
Index-Name Compare occurrence number Compare without conversion Compare occurrence number with data-name Compare occurrence number with literal Compare occurrence number with arithmetic expression
Index Data Item Compare without conversion Compare without conversion Not permitted Not permitted Not permitted