[Next] [Up] [Previous] [Contents]
Next: Set expressions Up: Expressions Previous: Arithmetic operators

Comparison operators

The comparision operators are

        =        equal
	~=       not equal
        <        less than
        >        greater than
        <=       less than or equal
        >=       greater than or equal

When applied to integers, all return boolean values. The ``equal'' and ``not equal'' operators may also be applied to symbolic constants. Any integer is considered not equal to any symbolic constant. The inequality operators are undefined if either operand is a symbolic constant.



Ken McMillan
Sat Jun 6 21:41:59 PDT 1998