Increment() function
The Increment( ) function determines the next node at the same level. You can also increase the level of a node by one at a specified level.
Returns: node
Syntax
Increment(node, integer)
- node
- The starting node to increment from.
- integer
- The node member to increment. If you do not specify this argument, the next node at the same level as node1 is returned.
Examples
Example 1
EXECUTE FUNCTION Increment('1.2.3');
(expression) 1.2.4
This example uses only one argument. The result shows the next node at the same level.
Example
2
EXECUTE FUNCTION Increment('1.2.3', 3);
(expression) 1.2.4
This example increments the member in position three, whose value is 3.
Example 3
EXECUTE FUNCTION Increment('1.2.3', 1);
(expression) 2.0
This example increments the first node member.