ModelData:getNodeSibling
EditReturns the next sibling of a node (a node with the same parent), or nil if the node doesn't have a sibling.
This, together with ModelData:getNodeChild, can be used to iterate the tree of nodes in a model.
sibling = ModelData:getNodeSibling(node)Arguments
| Name | Type | Description |
| node | string | number | The name or index of a node. |
Returns
| Name | Type | Description |
| sibling | number | nil |
The index of the node's next sibling, or nil if the node doesn't have a sibling.
|