Action code and export code
Attributes are the matter of Tinderbox action code. Any attribute can be accessed in Tinderbox code using the following:
$
AttributeName
(
designator
)
Code gets divided into two domains—action code and export code. Action code is code used by agents, rules, stamps, and during the act of placing a note inside another. It can also be performed by a template, by using the ^action(code)^
export code.
Action code can be used inside templates when its embedded inside ^if(condition)^
and ^value(expression)^
. For example, you can print the outline depth of target_note to the exported html file by putting ^value($OutlineDepth)^
somewhere inside your export template. Thus any attribute can be exportedu sing the following:
^value($
AttributeName
(
designator
))^
There are over 300 system attributes built into Tinderbox, organized under headings such as General and Appearance. You can also create your own attributes, and these will appear under the heading User.