This version is out of date, covering development from v9.5.0 to v9.7.3. 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 v9 Icon

Designators in actions

Both item and group scoped designators are allowed in attribute references. For example:

$MyList=$Color(children); 

finds a list of the colours ($Color) of each child of this note, and

$MyList=$Color(children).unique; 

finds the same list but without duplicates. N.B. lists can hold duplicate values.

Working with numerical values:

$MyNumber=$Width(children).max; 

will find the maximum width of the container's children.

When the same designator is applied to the attribute $Text

$Text=$Text(children); 

the texts of each child are placed in this note's $Text, separated by paragraph breaks. To append the same child text to existing text:

$Text=$Text+"\n"+$Text(children);