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

Query Syntax

Queries are written in action code syntax but some differences.

Queries never use semi-colon terminators unlike in rules, etc.

Equality tests (are two things the same?) always use a == operator (two equals signs). Note: old code examples may use a single '=' and if using copy paste don't forget to double the = to ==.

If a query has multiple parts, these are joined using & (and) or | (or) join characters.

If it is desired control the order in which different parts of a multi-term query are evaluated, each query term - or sub-groups of query can be enclosed in parentheses, i.e. round brackets '(' and ')'. As with parentheses in a spreadsheet formula, Tinderbox will evaluate the inner-most (most deeply nested) parentheses before working outwards until the whole query is evaluated.

Action code references can be used, i.e. referencing values in another note $Color versus $Color("Some other note). In the special case of wanting to reference attribute values in the agent itself, use the 'agent' designator.



A Tinderbox Reference File : Agent & Queries : Query Syntax