Arbortext Command Language > Functions by Alphabetical Listing > profilenode_ancestors
  
profilenode_ancestors
profilenode_ancestors(profilenode, arr)
Returns the number of folders that are ancestors of the node identified by the specified node.
profilenode — The node for which the number of ancestors is determined.
arr — An array of the profilenode identifiers of the folders that are ancestors of the node identified by profilenode. The list of values includes the profilenode of type STANDARD_PROFILE, RADIO_PROFILE, or FOLDERED_PROFILE for that particular profile branch. The array is populated in the order in which the ancestors are listed in the profile configuration file, starting with the STANDARD_PROFILE, RADIO_PROFILE, or FOLDERED_PROFILE profilenode. profilenode_ancestors returns the count of the array arr.