This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

Delaying code execution in notes using prototypes

In large or complex documents, it is possible to end up with many notes using the same prototype. If the later has a complex $Rule or $DisplayExpression, this can place quite a loading on the speed with which the cycle of running action code is completed. Simply setting $RuleDisabled or $DisplayExpressionDisabled in the prototype has no effect as these attributes are inherent and not inherited by notes using the prototype.

This problem can be routed around by making inheriting notes check the disablement in their prototype. This example is for a rule:

if($RuleDisabled($Prototype)){if($MyNum>0){$Color="bright red"}else{$Color=;};} 

However, be aware the rule still exists and the out if() condition is still evaluated, so this approach does remove the rule entirely.



A Tinderbox Reference File : Actions & Rules : Delaying code execution in notes using prototypes