Boolean

Boolean, or boolean logic, is a subset of algebra used for creating true/false statements. Boolean expressions use the operators AND, OR, XOR, and NOT to compare values and return a true or false result. These boolean operators are described in the following four examples:

  • x AND y - returns True if both x and y are true; returns False if either x or y are false.
  • x OR y - returns True if either x or y, or both x and y are true; returns False only if x and y are both false.
  • x XOR y - returns True if only x or y is true; returns False if x and y are both true or both false.
  • NOT x - returns True if x is false (or null); returns False if x is true.

Since computers operate in binary (using only zeros and ones), computer logic can often be expressed in boolean terms. For example, a true statement returns a value of 1, while a false statement returns a value of 0. Of course, most calculations require more than a simple true/false statement. Therefore, computer processors perform complex calculations by linking multiple binary (or boolean) statements together. Complex boolean expressions can be expressed as a series of logic gates.

Boolean expressions are also supported by most search engines. When you enter keywords in a search engine, you can refine your search using boolean operators. For example, if you want to look up information about the Apple iMac, but want to avoid results about apples (the fruit) you might search for "Apple AND iMac NOT fruit." This would produce results about iMac computers, while avoiding results with the word "fruit." While most search engines support boolean operators, their syntax requirements may vary. For example, instead of the words AND and NOT, the operators "+" and "-" may be required. You can look up the correct syntax in the help section of each search engine's website.

Updated March 12, 2011 by Per C.

quizTest Your Knowledge

The process of simplifying something technical may also be called what?

A
Dithering
0%
B
Encoding
0%
C
Recursion
0%
D
Abstraction
0%
Correct! Incorrect!     View the Abstraction definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Boolean on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.