Iterating over a user-defined list referenced by a variable
To iterate over a user-defined list that is referenced by a variable, use the
“user
” iterate type. List, segment, field, group, and user are
all iterate types.
For the basis
, use the name of the variable. For example,
@mylist
.
The iterate then loops over each element in the list that is referenced by
@mylist
.
Example:
COPY =a b c d --> @mylist
ITERATE user @mylist %u1
In this example, %u1
contains “a
” for the first
iteration.