NumChildWith

Description

Returns the number of children for the current node where the specified expression evaluates to True.

Syntax

NumChildWith(Expression: Boolean): Integer 

Example

NumChildWith(NodeIsLeaf())

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