EQ, EQUAL, =

Top  Previous  Next

 

The EQ selection clause operator compares a field or evaluated expression against another field, evaluated expression or literal value and tests for the first item being equal to the second. The synonyms EQUAL and = can be used.

 

 

Format

 

field EQ {NO.CASE} value

 

where

 

fieldis the first field or evaluated expression to be compared.

 

valueis the second field, evaluated expression or literal value to be compared. The optional NO.CASE qualifier causes a case insensitive comparison to be applied.

 

 

The EQ selection clause operator returns true if field is equal to value.

 

 

Example

 

LIST STOCK WITH QTY EQ 100

 

This command lists items found on the STOCK file with a QTY field of 100.

 

 

 

Pick Style Wildcards

 

If the PICK.WILDCARD option is enabled (see the OPTION command) and the value item is a literal value, the interpretation is extended to include use of Pick style wildcard characters:

A [ character at the start of the value replaces any number of leading characters. It is equivalent to the … action of the LIKE operator.
A ] character at the end of the value replaces any number of trailing characters. It is equivalent to the … action of the LIKE operator.
A ^ character within the value replaces a single character. It is equivalent to the 1X action of the LIKE operator.