| Operator Type: | Function |
| Operator Scope of Action: | Item |
| Operator Purpose: | Boolean (query) |
word(data)
Returns true if data is contained in the current note's text. This operator is quicker for matching whole words than using a regular expression. The function matches all notes that contain a single word matching a word in:
- the title OR
- the text OR
- any user string attribute(s)
Note that word() is stricter in its matching than the .contains() function as it looks only for entire words and does not match regular expressions. Although word() examines several different fields, the result is that word() is much faster than .contains().
The word data must be:
- a single word (no hyphenated words)
- contain only upper or lower case letters - so no white space, digits, or punctuation
- 4 characters or more (values less than 4 characters or fewer are ignored by Tinderbox).
In the query creation pop-ups of agent and Find dialogs this function is listed as "contains word".
This replaces the legacy #word query operator.
