Progress
Language Reference


NE or <> Operator

Interfaces
OS
SpeedScript
All
All
Yes

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

If characters are being compared, the character values are used to index into the current collation table so that the sort value of the characters are used in the comparison.

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 cat-page field is not equal to the unknown value or 0).

r-ne.p
FOR EACH item WHERE cat-page <> ? AND cat-page <> 0:
     DISPLAY item-num item-name cat-page
       WITH TITLE "Catalog Items" USE-TEXT.
END. 

NOTES


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095