Tree.GetChildCount

number Tree.GetChildCount (

string ObjectName,

string ParentNodeIndex )

Description

Returns the child count of a node.

Parameters

ObjectName

(string) The name of the tree object.

ParentNodeIndex

(string) The index of the node whose children will be counted.

Tip: Use an index of "0" to reference the root-level nodes.

Returns

(number) The number of child nodes in a specific parent node. If an error occurs, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions