word(data)

Tinderbox Icon


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:

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:

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.


Possible relevant notes (via "Similar Notes" feature):

Up: Query Boolean operators

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Types : Query Boolean operators : word(data)

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox