om.DomNode.getLastChild

Returns the last child DOM node.

Syntax

getLastChild()
  RETURNING result om.DomNode

Usage

The getLastChild() method returns the last child DOM node in the current node.

This method is typically used to scan children nodes with the getPrevious() method, until getPrevious() returns NULL.

DEFINE parent, child om.DomNode
...
LET child = parent.getLastChild()
WHILE child IS NOT NULL
    ...
    LET child = child.getPrevious()
END WHILE