This version is out of date, covering development from v8.0.0 to v8.x.x. 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 v8 Icon

child[N]

The designator child represents the oldest child (note) of the note currently in focus, thus the first as listed in Outline view. Mention in various references of 'oldest' deriving from creation/modification date are erroneous. 'Oldest' equates to the note whose $OutlineOrder attribute value is 1 greater than the current note's OutlineOrder value.

The logical opposite of this (first) child designator is lastChild; there is no firstChild designator.

To avoid ambiguity, the old group-scope 'child' designator is deprecated in favour of 'children'.

The designator can take an optional numbered offset N, in square brackets. N numbers up from zero and down from -1. Thus:

child[0] is the same as child

whilst:

child[1] is the second child

child[-1] is the last child

child[-2] is the last but one child