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
Note: When this parameter is null
,
the function does nothing and returns null
.
pos
null
, when
pos < 0
or
pos >= iterator.numItems
GOMContext.iterator, GOMIterator.items
properties
You may use this function in a more method-like style:
iterator.itemAt(pos)