Expressions in paths

Tinderbox Icon

Many action expressions designate a note, either by name, by path, or by object designators such as parent or prevSibling.

An extension to the path mechanism allows you to replace the normal string literal used for note designation with an expression:

$Color(7*6) <-- the color of the note named "42"

$Color($Path) <-- the color of the note whose name is stored in the attribute "Path"

In the case of ambiguity, expression evaluation has the lowest precedence. For example, if a note happens to be named "7*6", the reference will be to that note, not to the note named "42".


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

Up: Actions & Rules
Previous: Conditional statements using multiple arguments  Next: Delaying code execution in Prototypes 

A Tinderbox Reference File : Actions & Rules : Expressions in paths

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox