This function can be used within Element Iterator or Attribute Iterator sections. It provides random access to each item contained in the iteration scope according to the position of that item in the scope.

Parameters:

iterator

The object representing the iterator section.

Note: When this parameter is null, the function does nothing and returns null.

pos
The position of the item within the iteration scope (0-based).

Returns:

The requested item or null, when pos < 0 or pos >= iterator.numItems

See Also:

GOMContext.iterator, GOMIterator properties
Tip:

You may use this function in a more method-like style:

iterator.itemAt(pos)