Self-Cancelling Rules & Actions

Tinderbox Icon

By setting an action or rule to nothing as the last of a set of chained tasks, it can be self-cancelling. This can be done as part of the rule/action itself and can help to avoid unwanted repetion/looping. It is more normally needed with rules than actions as rules run every agent update cycle.

Consider this rule:


When the rule is run, the note's $Color is set to 'blue' and the Rule is set to nothing. Thus the $Color assignment is run once-only before the rule ceases to exist.

Up: Actions & Rules
Previous: Setting an attribute to re-enable inheritance  Next: Invoke command line scripts in action code 

[Last updated: 14 Dec 2009, using v5.0]

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