Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

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

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend