Relational Operators in ActionScript

Notes:

Relational Operators in Action Script Programming Language :
Relational operators are also known as comparison operators. They are used to find the relationship between two values or compare the relationship between two values; on comparison they yield the result either true or false.

< : less than Operator
> : greater than Operator

<= : less than or equal to Operator
>= : greater than or equal to Operator

== : equal to Operator
!= : not equal to Operator

Or truth table
P Q P or Q
T T T
T F T
F T T
F F F

Example code:

trace("Relational operators demo");
trace(3<4); // true
trace(5<4); // false
trace(5>4); // true
trace(5>6); // false
trace(5<=6); // true
trace(6<=6); // true
trace(7<=6); // false
trace(7>=6); // true
trace(7>=7); // true
trace(6>=7); // false
trace(6==6); // true
trace(6!=6); // false
trace("Hello" == "Hello");//true
trace("Hello" == "hello"); //false