swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax    
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

    Related Syntax
   attribute
   attributes
   repeat over attributes
 
 
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.