A comparison operator compares its operands and returns a logical value based on whether the comparison is true or not. The operands can be numerical or string values. When used on string values, the comparisons are based on the standard lexicographical ordering.
The following table describes the comparison operators. It assume var1 has been assigned the value 3 and var2 has been assigned the value 4.