swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
     
control structure   repeat over attribute    

Syntax

  repeat over attribute attribute-name  element-qualifier*
        local-declaration*
        action*
    again


Purpose

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

       
----

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ ERRORS ]

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:37 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.