NOTE: This note is for legacy reference only.
- -prefixed Query Code for writing agent queries were replaced and deprecated from v4.6.0 (March 2009).
Essentially, in early Tinderbox versions some operators were written in a different code style, using a #-prefix. All such codes since have action code replacements (e.g. #inside() → inside()) so are unlikely to be found except in very old code examples or old TBX documents.
From v11.5.0, all the previously deprecated #-prefix codes will no longer work: #inside, #descendedFrom, #first, #last, #linkedTo, #linkedFrom, #indented, #similarTo, #word, #between. Any legacy code still running under deprecated support will now need to be replaced with the correct action code. The latter operator will be the older code but without the '#' character. But be aware that the syntax—number/order of arguments—may have changed so if updating old code check the syntax is correct before running the corrected code.
An easy way to find most old query code, is run the query $AgentQuery.contains("#").
Old query code might also occur in if(condition) and statements.
Legacy reference (link)
The syntax of these older codes is available at https://atbref.com/atbref46/index/AgentQueries/Legacyquerycode/SpecialQueryArgumentsdep.html. The linked article explains the mapping of old #-prefix syntax to new operator() syntax.