This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

Query for descendants of matched notes

It may be desirable to search for notes whose children or descendants share a property, for example:

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

This will find all notes that have a child, for which every descendant is where $Checked is true. In previous versions, it was necessary to query:

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

The older form was needed because the query applies to an alias, and aliases have no children. However, from v5.8.0, an alias' children are, for the purposes of actions, the children of its original note, and in the same manner its descendants are the descendants of the original note.

Possible relevant notes (via "Similar Notes" feature):

A Tinderbox Reference File : Agent Queries : Query for descendants of matched notes