Depth() function

The Depth( ) function returns the number of levels in the specified node.

Returns: integer

Syntax

Depth(node)
node
The node for which you want to determine depth.

Examples

Example 1
EXECUTE FUNCTION DEPTH('1.22.3');

Returns: 3

Example 2
EXECUTE FUNCTION DEPTH('6.5.4.3.2.1');

Returns: 6