Compare
The Compare field compares two values, then returns 1 if the comparison is true and 0 if it is false.
Syntax
{ COMPARE FirstExpression Operator SecondExpression }
Either expression can be a number, a bookmark, a string, a nested field, or a value. You can also use the ? and * wild cards in an expression.
Operators
The following operators work with the Compare field:
Operator | Meaning |
---|---|
= | Equals |
> | Greater than |
< | Less than |
>= | Greater than or equal to |
<= | Less than or equal to |
<> | Not equal to |
Examples
To test whether the bookmark revenue exceeds the bookmark costs, and to return the value 1 if it does:
{ COMPARE revenue > costs }
Get Special Edition Using Microsoft® Word 2000 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.