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

compositeFor("item"):kind


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Property   [other Property type actions]

 Composite   [operators of similar scope]

 Composite   [other Composite operators]

 Baseline

 


compositeFor("item"):kind

returns the String name of the composite from which the composite containing note item was instantiated.

For example, if a composite was created from the built-in 'list' composite, this function will return "list". The query:

compositeFor(this):kind=="book" 

would locate all notes that participate in composites instantiated from "book" – all books.

This code an also use the 'my' designator to give a shorter form. These are functional equivalents:

compositeFor(this):kind 

my:kind