This version is out of date, covering development as far as v4.2.5. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
A Tinderbox Reference File : Actions & Rules : AttributeA = $AttributeB( note/item/path ) |
AttributeA = $AttributeB( note/item/path ) |
AttributeA = $AttributeB( note/item/path )
For each of the gathered notes, sets the value of the AttributeA to that of the AttributeB of the same note (i.e. this or current), if no argument is specified, or of a note specified through name, item or path. (see more on paths).
In effect the $AttributeValue(note) syntax is the analogue of ^get(Attribute)^. Likewise, if the attribute value is needed from a note other than the current note, use $AttributeValue(path) or the ^getFor( note, attribute )^ method.
Use of ^get^ and ^getFor^ in actions and rules is now deprecated in favour of the $ syntax.
Do not mix $Attribute and Attribute(pattern) syntax in a single statements, i.e. $Attribute(pattern), as this will cause expected results. Use one syntax or the other. This possible conflict should only ever occur in the context of queries or operations that allow query-style code).
Prior to v4.2.0, the value of $Name for aliases could be computed incorrectly.
Up: Actions & Rules | |
Previous: Attribute = expression | Next: Attribute = $1 (pattern extraction) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]