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 returnsnull
.
pos
The position of the item within the iteration scope (0-based).
Returns:
The requested item ornull
, whenpos < 0
orpos >= iterator.numItems
See Also:
GOMContext.iterator, GOMIterator
properties
Tip:
You may use this function in a more method-like style:
iterator.itemAt(pos)