Graft() function
The Graft( ) function moves parts of the node tree. The Graft() function is useful for moving subsections of the tree and returns a new node value that is the result of grafting the third argument, under the second argument, from the first argument node down. No values are verified against any table data.
Returns: node
Syntax
Graft(node1, node2, node3)
- node1
- The parent of the node that you are grafting to another location.
- node2
- The new parent of the grafted node.
- node3
- The node to move from a child of node1 to a child of node2.
Example
EXECUTE FUNCTION Graft (“1.2.3”, “1.4”, “1.2.3.2”);
(expression) 1.4.2
The node 1.2.3.2 is moved from under node 1.2.3 to under node 1.4. The moved node becomes 1.4.2. Existing nodes cannot be overwritten.