om.NodeList.item

Returns a DOM node element by position in the node list.

Syntax

item( index INTEGER )
  RETURNING result om.DomNode
  1. index is the ordinal position of the node in the list.

Usage

The item() method returns the om.DomNode object at the position specified.

First element is at position 1.

If there is no element at the specified index, the method returns NULL.

Example

DEFINE list om.NodeList,
       node om.DomNode
...
LET node = list.item(12)