OneMatch

Checks if only one match was found from a search query.

Generally used to display a message on the search results page.

Type and Usage

Output

  • Returns TRUE if only one match was found.

  • Returns FALSE if no matches or more than one match were found.

Example

Displays text if only one match was found from a query:

<$if OneMatch$>
    <p><font face="arial" size="2">
    Found <$TotalRows$> document matching the query.</p>
<$endif$>