Model:getNodeChildren

Edit

Given a parent node, this function returns a table with the indices of its children.



Arguments

NameTypeDescription
indexnumber The index of the parent node.

Returns

NameTypeDescription
childrentable A table containing a node index for each child of the node.

Arguments

NameTypeDescription
namestring The name of the parent node.

Returns

NameTypeDescription
childrentable A table containing a node index for each child of the node.

Notes

If the node does not have any children, this function returns an empty table.

See also