NumChildWith

説明

現在のノードで、指定された式がTrueと評価される子の数を戻します。

構文

NumChildWith(Expression: Boolean): Integer 

NumChildWith(NodeIsLeaf())

ノードに2つのリーフの子がある場合、戻り値は2です。