Previous Topic: Explicit SubscriptingNext Topic: Implicit Subscripting Example


Explicit Subscripting Example

 --- SET SUBSCRIPT OF elephants TO 1
|--- WHILE
|        SUBSCRIPT OF elephants IS LESS THAN OR EQUAL TO LAST OF elephants
|            SET elephant_size TO “elephantine”
|            SET SUBSCRIPT OF elephants TO SUBSCRIPT OF elephants +1
 ---

In contrast, had the repeating group view Elephants been defined as implicitly subscripted, the statement in the next figure would accomplish the same result.