| Applying science to business management |
  
Comparison Operators
There are six operators you can use to compare data items. All
of these operators return a Boolean value (true or false).
The comparison operators can be used with all data types. That
is, they can be used to compare numbers, text strings, Boolean
values, etc. They can even be used to compare lists and matrices.
Equal x==y
The Equal operator returns true if x and y
are identical. Otherwise, it returns false.
Not Equal x!=y
The Not Equal operator's behavior is exactly the
opposite of Equal. Not Equal
returns true if x and y are NOT identical. Otherwise, it
returns false.
Less Than x<y
Less Than returns true if x is less than y.
Otherwise, it returns false.
Greater Than x>y
Greater Than returns true if x is greater than y. Otherwise, it returns false.
Less Than or Equal x<=y
Less Than or Equal returns true if x is either less than or equal to y. Otherwise, it returns false.
Greater Than or Equal x>=y
Greater Than or Equal returns true if x is either greater than or equal to y. Otherwise, it returns false.
See Also
Comparing Numbers
Comparing Text Strings
Comparing Lists
Comparisons Between Data Types
|