5.
$ChildCount vs ^childlinks^

Would you like an alias of a note to export with the original’s children? If so, use $ChildCount:

	^if($ChildCount)^
		^children(bstSubPost)^
	^endIf^

However, if you want to export only that alias itself without the children contained in its original, use ^childlinks^:

	^if(^childlinks^)^
		^children(bstSubPost)^
	^endIf^