^action( action )^

Tinderbox Icon


Code Type:   Calculation
Code Scope of Action:   n/a

^action( action )^

This code performs any action, or list of actions, that could be performed by an agent or rule. For simplicity, consider it as if it were a rule that is only run when a note is exported using the template holding the ^action()^ code.

The action code is performed immediately. ^action^ does not export anything itself. For example:

^action($Color="red")^ ^value($Color.format())^ 

will change the color of the exported note to "red" and export "red".

This allows manipulations for export use without needing to, for instance, hold the value in a user attribute first.

Also see, action(), ^value( expression )^.

The internal equivalent is a normal action/rule statement, i.e. there is no point in using ^action^ internally. However, if you want some logic during export to change an internal attribute value (e.g. exported notes having a new color), then use ^action^ in the context of your export codes.


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

Up: Export Codes - Full Listing
  Next: ^ancestors( start, list-item-prefix, list-item-suffix, end )^ 

A Tinderbox Reference File : Export Codes : Export Codes - Full Listing : ^action( action )^

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