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

Jump to the current version of aTbRef

Tinderbox v9 Icon

ChildCount


Attribute Data Type: 

Attribute Default Value: 

Attribute Group: 

Attribute Purpose: 

Attribute Inherited from Preferences?   

Attribute UI-configurable? 

Attribute Read-Only? 

Attribute Intrinsic? 

Attribute First Added: 

Attribute Last Altered: 

 number   [other number-type attributes]

 (calculated)

 General   [other General Group attributes]

 Calculated data

 No

 No

 Yes   [other read-only attributes]

 No

 Baseline

 As at 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 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.