AttributeA = $AttributeB( note/item/path )

Tinderbox Icon

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 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).


Up: Actions & Rules
Previous: Attribute = expression  Next: Attribute = $1 (pattern extraction) 

[Last updated: 1 Dec 2008]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox