Tinderbox Forum

Query to identify all notes with a prototype inherited from a root prototype

Let’s say I have 3 prototypes (one root prototype and 2 more specialised prototypes that inherit from the root prototype). Listing the prototypes:

  1. pRoot
  2. pSpecial1
  3. pSpecial2

My question: Is there a way to retrieve all notes who’s prototype is inherited from pRoot ? In this case it’s relatively easy to build up a query along the lines of

$Prototype == "pSpecial1" | $Prototype=="pSpecial2"

However, if I have say 10 inherited specialised prototypes this becomes clumsy and error prone.

You’re looking for inheritsFrom(thePrototype) or inheritsFrom(whichNote, thePrototype).

1 Like