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


In the context of DisplayExpressions and agents, 'that' refers to note running the code. As expressions like find() change the meaning of 'this', 'that' provides access to the original value of this.

For instance, it makes it possible to to use an attribute value from the calling notes within a find() query in an expression. In such contexts, 'this' would apply to the note being queried by find() rather than the note calling find().

For example if Note A, has 'Note B' stored in $MyString and runs a rule (or some other action code) the following would fail to test each note in find() for a $MyString value of Note B:

find($MyString(this)=="Note B") Fail!


find($MyString(that)=="Note B") 

will test each note in scope of the find() query for the $MyString value stored in the calling note, i.e. Note A.

A Tinderbox Reference File : Objects & Concepts : Concepts : Actions : Designators : Item Note Designators : that