[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
<>                       Not Equal To                     Relational Operator

 <exp1> <> <exp2>

    The <> operator is a relational operator, yielding a Boolean value
    (TRUE or FALSE). If <exp1> has a different value than <exp2>, the
    result is TRUE; otherwise, the result is FALSE.

   <exp1>,<exp2>    Any expression of type Real, Integer, Char, Boolean,
                    enumerated, set, pointer, or string. Both expressions
                    must be the same type. Real, Byte, and Integer types
                    may be mixed.

  -------------------------------- Example ---------------------------------

           if Number <> Guess then
             Writeln ('Wrong guess')
           else
             Writeln ('Correct guess');

See Also: =
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson