level of tree()
This function returns the level of the node or field in the target structure. The level of the root node is defined as "1". A subnode of the root node has level "2" (level of parent node + 1).
This function has no parameters.
Examples
The following target structure is given.
All fields and nodes contain the function described here.
Node/Field |
Result |
RootLevelNode |
1 |
RootLevelField |
2 |
SubLevelNode |
2 |
SubLevelField |
3 |
SubSubLevelNode |
3 |
SubSubLevelField |
4 |