Query for descendants of matched notes

Tinderbox Icon

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):

Up: Agent Queries
Previous: Querying Lists and Sets  Next: Fine-tuning searches using $Searchable 

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

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox