Returns a list of nodes related to the current node where the specified expression evaluates to True.
ListRelatedNodesWith(Relation:String,Expression:String,SortOrder:String,Max:Integer):String
Relation can be:
Ancestors––Local properties can be referenced in the specified expression
Siblings––Local properties can be referenced in the specified expression
Children––Local and global properties can be referenced in the specified expression
Descendants––Local and global properties can be referenced in the specified expression
Expression is a Boolean expression to evaluate.
SortOrder specifies the sort order for the return list of nodes. Supported sort order values:
[hier]––Default value for local context. The list of nodes is returned in the standard hierarchy sort order for the current hierarchy.
[alpha]––The list of nodes is returned sorted by node name.
[nodeid]––Limited use for legacy compatibility. The list of nodes is returned sorted numerically on the node ID of each node in the return list.
Note: | You must use brackets around the SortOrder parameter. |
Max is an integer value indicating the maximum number of nodes to return. Zero or no value indicates no limit, and all nodes are returned.
ListRelatedNodesWith(children,True,[alpha],1000)
Returns 100,200,300 if the nodes are children of the current node.