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"):role("theRole")


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"):role("theRole")

returns a List-type list of paths of all notes in the composite containing note item, but including only the note or notes with the designated role theRole. For example, to set the color of all notes with the role "author":

$Color(compositeFor("great books"):role("author"))="red" 

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

compositeFor(this):role("some role") 

my:role("some role") 



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : compositeFor("item"):role("theRole")