Boolean Operators

The Boolean operators not, and, or, and xor take operands of any Boolean type and return a value of type Boolean.

Boolean Operators

Operator

Operation

Operand Types

Result Type

Example

not

negation

Boolean

Boolean

not (C in MySet)

and

conjunction

Boolean

Boolean

Done and (Total > 0)

or

disjunction

Boolean

Boolean

A or B

xor

exclusive disjunctionBoolean

Boolean

A xor B

These operations are governed by standard rules of Boolean logic. For example, an expression of the form x and y is True if and only if both x and y are True.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment