Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

Boolean Operators

There are three Boolean operators And, Or, and Not. These operators are usually used to combine expressions involving the comparison operators described in the preceding section. For example, the following expression returns true if the number represented by x is between 5 and 10.

x>=5&&x<=10

Like the comparison operators, every Boolean operator returns a Boolean value (true or false).

Logical And x&&y

Returns true only if both x and y are true.

Logical Or x||y

Returns true if either x or y is true.

Logical Not !x

Returns true if x is false. Otherwise, Not returns true.

See Also

Conditional Evaluation

Logical Look-Ahead

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Software  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis  |  Expert System Software  |  Market Research Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2010 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend