|
|||||||||
|
|
|||||||||
| control structure | repeat over attribute | ||||||||
Syntax
repeat over attribute attribute-name element-qualifier*
local-declaration*
action*
again
repeat over attribute iterates over the values in a list-valued attribute.
One or more list-valued attributes and/or shelves can be combined in a single repeat over when they each have the same number of values.
For example:
; initializes integer shelf with the lengths of the corresponding attribute values.
...
element e
local integer attribute-value-length variable
...
repeat over attribute-value-length & attribute multi
set attribute-value-length to length of attribute multi
again
| ---- |