Evan
Feb 2nd, 2004, 03:04 PM
== Equal to
!= Not Equal to
> Greater than
< Less than
>= Greater than or Equal to
<= Less than or Equal to
String Comparison
These are similar to the numerical comparisons, but they work with strings. We will note a few differences in the way these work after the list below:
Operator Function
eq Equal to
ne Not Equal to
gt Greater than
lt Less than
ge Greater than or Equal to
le Less than or Equal to
Logical Operators
These are often used when you need to check more than one condition. Here they are:
Operator Function
&& AND
|| OR
! NOT
!= Not Equal to
> Greater than
< Less than
>= Greater than or Equal to
<= Less than or Equal to
String Comparison
These are similar to the numerical comparisons, but they work with strings. We will note a few differences in the way these work after the list below:
Operator Function
eq Equal to
ne Not Equal to
gt Greater than
lt Less than
ge Greater than or Equal to
le Less than or Equal to
Logical Operators
These are often used when you need to check more than one condition. Here they are:
Operator Function
&& AND
|| OR
! NOT