Boolean Expression

What Does Boolean Expression Mean?

A Boolean expression is one that conforms to one of two given Boolean results, commonly characterized as true or false.


These expressions and operators are a core part of computer science and programming languages.

Techopedia Explains Boolean Expression

Boolean expressions power many algorithms and code modules.

For example, a loop or code function can operate based on a Boolean value, or a variable or array of variables can be set according to a Boolean expression.

One interesting point in computer science is that while Boolean expressions conform to a kind of binary structure, one where something is either true or false, on or off; Boolean expressions do not inherently relate to the binary structure of machine code.

Binary is a sequence of ones and zeros that provides the raw coding for computers and machines. By contrast, Boolean expressions and Boolean values are seen as logical, not as a set of binary values. They’re considered independent logic operators which makes the use of Boolean values different from the use of binary values.

The difference between Boolean and binary is one of the fundamental points that students will learn in computer science education as they explore the different ways that humans use programming syntax to interact with machines.


Related Terms

Margaret Rouse
Technology Expert

Margaret is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.