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]
String [about String data type]
v7.0.0
Baseline
As at baseline
compositeFor(nameStr):kind
returns the String name of the composite from which the composite containing note nameStr was instantiated.
For example, if a composite was created from the built-in 'list' composite, this function will return "list". The query:
$MyString = compositeFor(this):kind=="book";
would locate all notes that participate in composites instantiated from "book" – all books.
This code can also use the 'my' designator to give a shorter form. These are functional equivalents:
$MyString = compositeFor(this):kind;
$MyString = my:kind;
See also—notes linking to here: