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

Aliases, children and descendants

Although aliases do not have children or descendants of their own, an alias in action code (such as queries) can act as a proxy reference to such descendants. Previously, is was necessary to write every(descendant(original),$Checked whereas now the same can be queried, via an alias in scope by using every(descendant(,$Checked).

In an agent query, we may want to search for notes whose children or descendants share a property:

Query: $ChildCount>0 & every(descendant,$Checked)

This will find all notes that have a child, for which every descendant is checked.

In previous versions, it was necessary to reference the original of the alias, since the query applies to an alias, and aliases have no children. An alias' children are, for the purposes of actions, the children of its original note, and its descendants are the descendants of the original note. By contrast, this does not mean that aliases can have their own discrete children/descendants.



A Tinderbox Reference File : Agent & Queries : Aliases, children and descendants