This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

ChildCount


Attribute Data Type: 

Attribute Default Value: 

Attribute Group: 

Attribute Purpose: 

Attribute Inherited from Preferences?   

Attribute Read-Only? 

Attribute Intrinsic? 

Attribute First Added: 

Attribute Altered: 

 number   [other number-type attributes]

 (calculated)

 General   [other General Group attributes]

 Calculated data

 No

 Yes

 No

 Baseline

 


Number of children belonging to the current note (read-only).

This returns the count of direct children (i.e. one level down) and not all descendants. For a count (usually larger) of all notes below this see $DescendantCount.

The count excludes adornments, which are counted in $AdornmentCount.

Usually, rules and queries to test whether a note has children will test $ChildCount. But for export use if you want the expression to be false if the note has children but none of the children are exported, then using ^if(^childLinks^)^ …is better.



A Tinderbox Reference File : Attributes : System Attribute List : ChildCount