This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

Self-Cancelling Rules & Actions

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 repetition/looping. It is more normally needed with rules than actions as rules run every agent update cycle.

Consider this rule:

$Color="blue";$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. However, the above only sets the Rule to no value, it doesn't re-enable inheritance. For that a slightly different syntax is needed:

$Color="blue";$Rule=; 


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


A Tinderbox Reference File : Actions & Rules : Self-Cancelling Rules & Actions