swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax    
operator  

children

 
 

Return type: Integer
Returns:       Number of subelements.

Syntax

children element-qualifier*


Purpose

An operator that returns the number of subelements of the given element that have occurred thus far in processing.

If an element qualifier is not given, children returns the number of subelements of the current element. If it is used before the current element is processed, it will return zero (0).

If an element qualifier was given, the count of the children processed so far of the indicated element is returned, including the currently open child. Inclusions are counted, as well as proper subelements.

For example, the following do when block uses children as a qualifier. The actions contained by the block (which are not shown in the example) will only be executed when the test occurs in the first child element of the parent:

  do when children of parent = 1
  ...
  done

    Related Syntax
   occurrence
 
 
 

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.