A Tinderbox Reference File : Agent Queries : Legacy query code : Export Code in queries (deprecated) | aTbRef Site Map |
Export Code in queries (deprecated) |
DEPRECATED USAGE
From v4.6, queroes 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.
Up: Legacy query code | |
Previous: Special Query Arguments (deprecated) | Next: Macros in Agents (pre v4.6 only) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]