NE or <> operator

Compares two expressions and returns a TRUE value if they are not equal.

Syntax

expression { NE | <> } expression
expression
A constant, field name, variable name, or expression. The expressions on either side of the NE or must be of the same data type.

Example

This procedure displays information for all items that appear in the catalog. (The CatPage field is not equal to the Unknown value (?) or 0.)

r-ne.p

FOR EACH Item NO-LOCK WHERE Item.CatPage <> ? AND Item.CatPage <> 0:
  DISPLAY Item.ItemNum Item.ItemName Item.CatPage
    WITH TITLE "Catalog Items" USE-TEXT.
END.

Notes