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

 <exp1> = <exp2>

    The = operator is  a relational operator, yielding a Boolean value
    (TRUE or FALSE). If <exp1> has the same value as <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 ('Correct guess')
           else
             Writeln ('Wrong guess');

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