Error getting tags :
error 404Error getting tags :
error 404 wholeMatches | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
wholeMatches
Basics
Expander triangle
Type
Property
Syntax

set the wholeMatches to {true | false}

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies whether the lineOffset, wordOffset, and itemOffset functions search only for entire lines, words, or items.
Examples

set the wholeMatches to true

Additional Comments
Expander triangle

Use the wholeMatches property to find lines, words, or items in a container only if what you're searching for matches an entire line, word, or item.

Value:

The wholeMatches is true or false.

By default, the wholeMatches property is set to false.

Comments:

For example, suppose line 6 of a field named "Test" is "additive". The expression

lineOffset("add",field "Test")

evaluates to 6 if the wholeMatches is false, because "add" is part of the line "additive". If the wholeMatches is true, this function call returns 0 (zero), because "add" does not exactly match the line "additive".

If the wholeMatches property is set to true, the expression

lineOffset(phrase, container)

is equivalent to the expression

phrase is among the lines of container

except that the first evaluates to a line number and the second evaluates to true or false. Similarly, the wordOffset and itemOffset functions operate similarly to the is among operator if the wholeMatches property is true.

Since the wholeMatches is a local property, its value is reset to false when the current handler finishes executing. It retains its value only for the current handler, and setting it in one handler does not affect its value in other handlers it calls.

User Comments
Expander triangle