|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles Qt Script for Applications

[Prev: Logical Operators] [Home] [Next: Bit-wise operators]

Comparison Operators

These operators are used to compare objects and their values.

== operator

operand1 == operand2

Returns true if the operands are equal; otherwise returns false.

!= operator

operand1 != operand2

Returns true if the operands are not equal; otherwise returns false.

=== operator

operand1 === operand2

Returns true if the operands are equal and of the same type; otherwise returns false.

!== operator

operand1 !== operand2

Returns true if the operands are not equal or if the operands are of different types; otherwise returns false.

> operator

operand1 > operand2

Returns true if operand1 is greater than operand2; otherwise returns false.

>= operator

operand1 >= operand2

Returns true if operand1 is greater than or equal to operand2; otherwise returns false.

< operator

operand1 < operand2

Returns true if operand1 is less than operand2; otherwise returns false.

<= operator

operand1 <= operand2

Returns true if operand1 is less than or equal to operand2; otherwise returns false.

[Prev: Logical Operators] [Home] [Next: Bit-wise operators]


Copyright © 2001-2006 TrolltechTrademarks
QSA version 1.1.5