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

Jump to the current version of aTbRef

Tinderbox v8 Icon

that

The designator 'that' refers to note running a query within find() code. As expressions like find() change the meaning of 'this', 'that' provides access to the original value of this. 'that' is evaluated in stamps.

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!

But:

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.