AncestorProp

Description

Returns a property value of the first ancestor where a property equals a specified value.

Note:

If the current node is valid for the criteria, then it will be returned.

Syntax

AncestorProp(Operator:String,Property:String,Value:String,FromTop:Boolean,ReturnProp:String)

Operator is the operator to use when comparing the property with the value. Valid values: =, <, >, >=, and <=.

Property is the name of the property to use.

Value is the value to compare.

FromTop specifies whether to search from the top node of the hierarchy. If False, the search is performed starting from the current node.

ReturnProp is the name of the property to return.