NumChildWith

Description

Returns the number of children where the specified expression is True.

Syntax

NumChildWith(Expression: Boolean): Integer 

Example

NumChildWith(NodeIsLeaf())

If the node has two leaf children, then the return value is 2.