OPERATORS

Inequality (!= <>)

Return the logical inverse of ordinary equality.

Syntax

Signature
left != right
left <> right

Description

Return the logical inverse of ordinary equality. Both spellings have the same meaning. With EXACT off, a string that begins with the entire right operand compares equal to it. With EXACT on, excess trailing spaces are ignored.

Example

Inequality.prg
PROCEDURE Main()

   LOCAL aBooked := { 10, 12, 8 }
   LOCAL aCounted := { 10, 11, 9 }
   LOCAL nBin

   FOR nBin := 1 TO Len( aBooked )
      IF aCounted[ nBin ] <> aBooked[ nBin ]
         QOut( "Bin", nBin, "stock variance", aCounted[ nBin ] - aBooked[ nBin ] )
      ENDIF
   NEXT

   RETURN

Output