Tinderbox v10 Icon

compositeFor(nameStr):role(roleStr)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Property  [other Property type actions]

 Composite  [operators of similar scope]

 Composite  [other Composite operators]

 List [about List data type]

 v7.0.0

 Baseline

 As at baseline


compositeFor(nameStr):role(roleStr)

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

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

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

$MyList = compositeFor(this):role("some role"); 
$MyList = my:role("some role"); 

See also—notes linking to here: