This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

Export Code in queries (DEPRECATED)

This pages describes features, codes or syntax whose use is now DEPRECATED, i.e. not advised either for new or continued pre-existing use.

Deprecated aspects of Tinderbox may be supported on a legacy basis but the latter support can't be presumed to be indefinite. Therefore you should update your active TBX documents to latest practice as soon as practical.

DEPRECATED USAGE

From v4.6, queries are action code expressions and action code should be used wherever possible.

Export (a.k.a 'Template') expressions can appear in the right hand side of agent queries. For example

$Color=^get($Color)^ 

finds all notes whose Color value matches the $Color value of the agent itself. Current usage would now be:

$Color=$Color 

Note that in this case the context of the template is the agent, not the note being tested -- that is, this refers to the agent. This method allows an agent's own attributes to control the 'match' value. Changing that value, e.g. through a rule or another agent, will alter the current agent's matched notes.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Deprecated Usage : References to deprecated aspects of Tinderbox : Export Code in queries (DEPRECATED)