Compound Actions

Tinderbox Icon

Compound actions are just like simple actions but each action is separated by a semicolon:

Action: $Color="red";$Priority="high" 

Sometimes, this leads to complications. Suppose, for example, you want an action to set the OnAdd action. (Perhaps you have an agent that's looking for containers of UrgentTasks, and wants to set the OnAdd action for those containers). The simplest way of writing this is:

Action: $OnAdd=$Color="red";$Priority="high" 

... which will do two things: set the OnAdd action to "$Color=Red" and set the Priority to high.

If you want the OnAdd action to be set to the entire expression, enclose it in quotes:

Action: $OnAdd="$Color=red;$Priority=high"

This quoted style is also required if setting multiple KeyAttribute values (or any set/list-type attribute).

Action: $KeyAttributes="Color;Name;Rule"


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

Up: Actions & Rules
Previous: Operators  Next: Conditional Actions (if clauses) 

A Tinderbox Reference File : Actions & Rules : Compound Actions

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