RESEARCH STARTER
Boolean expression
A Boolean expression is a logical statement used in computer science that evaluates to a Boolean value, which can be either true or false. This binary framework extends to other dichotomous representations such as yes/no and on/off. Boolean expressions can incorporate various elements, including Boolean variables, comparison operators, and functions that yield Boolean outcomes. The roots of Boolean logic trace back to the work of George Boole, an English mathematician who established a system of logic based on symbolic algebra in the mid-19th century. This paradigm shift moved away from traditional Aristotelian logic, enabling more complex evaluations of arguments and conditions.
In modern computing, Boolean expressions play a crucial role in software algorithms, guiding how systems respond to specific inputs or conditions. They often employ logical operators such as AND, OR, and NOT, as well as comparison operators like equal to or greater than. By utilizing these expressions, computers can execute conditional statements, determining actions based on whether certain criteria are met. For example, a system might allow access to a user account only if the correct password is provided, showcasing the practical applications of Boolean logic in everyday technology. Understanding Boolean expressions is essential for grasping the fundamentals of programming and computer operations.
Authored By: Greene, Jim, MFA 1 of 4
Published In: 2023 2 of 4
- Related Topics:
3 of 4
- Related Articles:
4 of 4
Full Article
In computer science, a Boolean expression is a logical statement that expresses or generates a Boolean value. Boolean values are often characterized as truth values because they have only two possible modes: true and false. Some sources also acknowledge additional representations of Boolean values, including yes and no or on and off. However, null (invalid) and not-null (valid) indicate the presence or absence of a value rather than Boolean values.
Boolean expressions may also contain Boolean formulas or variables, Boolean values generated via comparison operators, and functions that produce Boolean outcomes. Boolean expressions are part of a larger body of many Boolean systems used in contemporary computer science, which derive from a logic framework initially developed for use in mathematics and records management by the English logician, philosopher, and mathematician George Boole.
Background
George Boole is credited with importing algebraic structures into the field of logic. Born in 1815, Boole was a Lincolnshire, England-born schoolmaster who became a mathematics professor at Cork, Ireland-based Queen’s University in 1849. His professorship closely followed the 1847 publication of The Mathematical Analysis of Logic, which is recognized as one of Boole’s two major works. The other, The Laws of Thought, was published in 1854.
In The Mathematical Analysis of Logic and The Laws of Thought, Boole created a groundbreaking system of logic by adapting the principles of symbolic algebra into his novel paradigm. Scholars now recognize Boole’s contributions to logic as pioneering and critically important: Boolean systems fundamentally replaced the Aristotelian logic that had dominated the field since the age of antiquity. Aristotelian logic uses a universally recognized, structured system of argument forms, classifying arguments as either valid or invalid depending on whether they satisfy or fail to satisfy the requirements of a given form. Boolean logic instead uses algebraic structures that evaluate propositions according to binary outcomes, such as “true or false,” “yes or no,” and “on or off.” This innovation allowed logicians to analyze arguments of any number, type, or complexity according to a simple and readily applicable set of principles.
During Boole’s lifetime, information systems were paper-based, and Boole primarily applied his logical system to expedite the searching of information repositories for specific pieces of data. Boolean systems allowed people to perform efficient and accurate searches by including certain classes of information and excluding others. In the mid-twentieth century, Boolean logic was imported into the emerging field of computing when Bell Labs built AN/FSQ-7, a massive early supercomputer that was used by the United States Air Force in the early 1950s. The AN/FSQ-7 system was built on Boolean logic, which went on to become a critical feature of computer programming. Boolean logic occupies a fundamental functional role in modern desktop and mobile technologies, including computer systems and smartphones. In these systems, Boolean logic indicates whether a specific circuit state or location in the system’s memory has a “positive,” “true,” or “on” value (1) or a “negative,” “false,” or “off” value (0).
Overview
Boolean expressions, as they apply to computer science, are operations-based logical statements that result in either a “positive,” “true,” or “on” outcome (1) or a “negative,” “false,” or “off” outcome (0). Computer systems use software and algorithms that employ Boolean expressions to determine how to behave or respond in a specific situation. Boolean expressions can include Boolean formulas or variables, Boolean values generated by comparison operators, or functions that express Boolean results when carried out or completed.
Boolean formulas represent strings of related propositions or events, each of which has only two possible outcomes. A Boolean variable is any variable that has only two possible states. Comparison operators are operators that prompt a computer system to compare two values and use the result to complete a Boolean expression. The 10 Boolean operators commonly used to generate Boolean results include the six core comparison operators, which are “=” (equal to), “!=” (not equal to), “<” (less than), “<=” (less than or equal to), “>” (greater than), and “>=” (greater than or equal to), and the special predicates, which include “is null” (indicates a null value or unknown or unapplied data), “is not null” (indicates a valid value, or a value other than null), “like” (the value matches a defined string), and “not like” (the value does not match a defined string). Comparison operators complement the logical Boolean operators AND, OR, and NOT, as well as related operations such as XOR. Logical Boolean operators are commonly used in search engine algorithms, which include or eliminate results based on whether the result satisfies the condition created by a specific operator. Any other mathematical or logical function that yields a Boolean result (positive/true/on/1 or negative/false/off/0) may also be part of a Boolean expression. Boolean expressions are also widely used in artificial intelligence systems, cybersecurity tools, database management systems, and software verification applications.
In their most fundamental forms, Boolean expressions contain three elements: two elements to be evaluated or compared, and one operator that instructs the system on how to evaluate or compare the two elements. By solving Boolean expressions, a computer or system can determine how to respond or behave in a particular situation. Multiple Boolean expressions, each of which generates a Boolean value, can also be combined to generate responses to more complex situations, with the overall response depending on the value generated at each step of the combined Boolean expressions.
The function of Boolean expressions is often described using “if/then” forms. Computers and computing systems often use Boolean expressions to determine what to do if a particular condition is or is not satisfied. For example, a computer system carries out a Boolean operation in response to a user entering a specific password for a given digital account. If the password is correct, then the software will grant the user access to the account. If it is incorrect, then the software will disallow access.
Bibliography
Ahmed Hamid Ahmed, Rasha, and Um Salama Ahmed Abd Alla Alemam. “Boolean Algebras and Their Applications.” ACTA Scientific Computer Sciences, vol. 6, no. 6, June 2024, actascientific.com/ASCS/pdf/ASCS-06-0525.pdf. Accessed 30 May 2026.
Awati, Rahul. “Boolean.” Tech Target, Nov. 2022, www.techtarget.com/whatis/definition/Boolean. Accessed 30 May 2026.
“Boolean Expressions.” Oracle, 2003, docs.oracle.com/cd/B12037_01/olap.101/b10339/expression006.htm. Accessed 30 May 2026.
“Boolean Expressions (Visual Basic).” Microsoft, 15 Sept. 2021, learn.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/operators-and-expressions/Boolean-expressions. Accessed 30 May 2026.
“Boolean Values.” IBM, 19 Jan. 2022, www.ibm.com/docs/en/ias?topic=list-Boolean-values. Accessed 30 May 2026.
“Comparison Operators.” IBM, 10 Jan. 2023, www.ibm.com/docs/en/cics-ts/6.1?topic=expressions-comparison-operators. Accessed 30 May 2026.
“George Boole.” Stanford Encyclopedia of Philosophy, 29 Dec. 2021, plato.stanford.edu/entries/boole/. Accessed 30 May 2026.
Microsoft. bool (C# Reference). Microsoft Learn, 2025, learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool. Accessed 30 May 2026.
Full Article
In computer science, a Boolean expression is a logical statement that expresses or generates a Boolean value. Boolean values are often characterized as truth values because they have only two possible modes: true and false. Some sources also acknowledge additional representations of Boolean values, including yes and no or on and off. However, null (invalid) and not-null (valid) indicate the presence or absence of a value rather than Boolean values.
Boolean expressions may also contain Boolean formulas or variables, Boolean values generated via comparison operators, and functions that produce Boolean outcomes. Boolean expressions are part of a larger body of many Boolean systems used in contemporary computer science, which derive from a logic framework initially developed for use in mathematics and records management by the English logician, philosopher, and mathematician George Boole.
Background
George Boole is credited with importing algebraic structures into the field of logic. Born in 1815, Boole was a Lincolnshire, England-born schoolmaster who became a mathematics professor at Cork, Ireland-based Queen’s University in 1849. His professorship closely followed the 1847 publication of The Mathematical Analysis of Logic, which is recognized as one of Boole’s two major works. The other, The Laws of Thought, was published in 1854.
In The Mathematical Analysis of Logic and The Laws of Thought, Boole created a groundbreaking system of logic by adapting the principles of symbolic algebra into his novel paradigm. Scholars now recognize Boole’s contributions to logic as pioneering and critically important: Boolean systems fundamentally replaced the Aristotelian logic that had dominated the field since the age of antiquity. Aristotelian logic uses a universally recognized, structured system of argument forms, classifying arguments as either valid or invalid depending on whether they satisfy or fail to satisfy the requirements of a given form. Boolean logic instead uses algebraic structures that evaluate propositions according to binary outcomes, such as “true or false,” “yes or no,” and “on or off.” This innovation allowed logicians to analyze arguments of any number, type, or complexity according to a simple and readily applicable set of principles.
During Boole’s lifetime, information systems were paper-based, and Boole primarily applied his logical system to expedite the searching of information repositories for specific pieces of data. Boolean systems allowed people to perform efficient and accurate searches by including certain classes of information and excluding others. In the mid-twentieth century, Boolean logic was imported into the emerging field of computing when Bell Labs built AN/FSQ-7, a massive early supercomputer that was used by the United States Air Force in the early 1950s. The AN/FSQ-7 system was built on Boolean logic, which went on to become a critical feature of computer programming. Boolean logic occupies a fundamental functional role in modern desktop and mobile technologies, including computer systems and smartphones. In these systems, Boolean logic indicates whether a specific circuit state or location in the system’s memory has a “positive,” “true,” or “on” value (1) or a “negative,” “false,” or “off” value (0).
Overview
Boolean expressions, as they apply to computer science, are operations-based logical statements that result in either a “positive,” “true,” or “on” outcome (1) or a “negative,” “false,” or “off” outcome (0). Computer systems use software and algorithms that employ Boolean expressions to determine how to behave or respond in a specific situation. Boolean expressions can include Boolean formulas or variables, Boolean values generated by comparison operators, or functions that express Boolean results when carried out or completed.
Boolean formulas represent strings of related propositions or events, each of which has only two possible outcomes. A Boolean variable is any variable that has only two possible states. Comparison operators are operators that prompt a computer system to compare two values and use the result to complete a Boolean expression. The 10 Boolean operators commonly used to generate Boolean results include the six core comparison operators, which are “=” (equal to), “!=” (not equal to), “<” (less than), “<=” (less than or equal to), “>” (greater than), and “>=” (greater than or equal to), and the special predicates, which include “is null” (indicates a null value or unknown or unapplied data), “is not null” (indicates a valid value, or a value other than null), “like” (the value matches a defined string), and “not like” (the value does not match a defined string). Comparison operators complement the logical Boolean operators AND, OR, and NOT, as well as related operations such as XOR. Logical Boolean operators are commonly used in search engine algorithms, which include or eliminate results based on whether the result satisfies the condition created by a specific operator. Any other mathematical or logical function that yields a Boolean result (positive/true/on/1 or negative/false/off/0) may also be part of a Boolean expression. Boolean expressions are also widely used in artificial intelligence systems, cybersecurity tools, database management systems, and software verification applications.
In their most fundamental forms, Boolean expressions contain three elements: two elements to be evaluated or compared, and one operator that instructs the system on how to evaluate or compare the two elements. By solving Boolean expressions, a computer or system can determine how to respond or behave in a particular situation. Multiple Boolean expressions, each of which generates a Boolean value, can also be combined to generate responses to more complex situations, with the overall response depending on the value generated at each step of the combined Boolean expressions.
The function of Boolean expressions is often described using “if/then” forms. Computers and computing systems often use Boolean expressions to determine what to do if a particular condition is or is not satisfied. For example, a computer system carries out a Boolean operation in response to a user entering a specific password for a given digital account. If the password is correct, then the software will grant the user access to the account. If it is incorrect, then the software will disallow access.
Bibliography
Ahmed Hamid Ahmed, Rasha, and Um Salama Ahmed Abd Alla Alemam. “Boolean Algebras and Their Applications.” ACTA Scientific Computer Sciences, vol. 6, no. 6, June 2024, actascientific.com/ASCS/pdf/ASCS-06-0525.pdf. Accessed 30 May 2026.
Awati, Rahul. “Boolean.” Tech Target, Nov. 2022, www.techtarget.com/whatis/definition/Boolean. Accessed 30 May 2026.
“Boolean Expressions.” Oracle, 2003, docs.oracle.com/cd/B12037_01/olap.101/b10339/expression006.htm. Accessed 30 May 2026.
“Boolean Expressions (Visual Basic).” Microsoft, 15 Sept. 2021, learn.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/operators-and-expressions/Boolean-expressions. Accessed 30 May 2026.
“Boolean Values.” IBM, 19 Jan. 2022, www.ibm.com/docs/en/ias?topic=list-Boolean-values. Accessed 30 May 2026.
“Comparison Operators.” IBM, 10 Jan. 2023, www.ibm.com/docs/en/cics-ts/6.1?topic=expressions-comparison-operators. Accessed 30 May 2026.
“George Boole.” Stanford Encyclopedia of Philosophy, 29 Dec. 2021, plato.stanford.edu/entries/boole/. Accessed 30 May 2026.
Microsoft. bool (C# Reference). Microsoft Learn, 2025, learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool. Accessed 30 May 2026.
More Like ThisRelated Articles
Related Articles (5)
Related Articles (5)
- Detecting Affine Equivalence Of Boolean Functions And Circuit Transformation.Published In: Computer Journal, 2023, v. 66, n. 9. P. 2220Authored By: Zeng, Xiao; Yang, Guowu; Song, Xiaoyu; Perkowski, Marek A; Chen, GangPublication Type: Academic Journal
- Mutation-Based Minimal Test Suite Generation for Boolean Expressions.Published In: International Journal of Software Engineering & Knowledge Engineering, 2023, v. 33, n. 6. P. 865Authored By: Ayav, Tolga; Belli, FevziPublication Type: Academic Journal
- On ring-like event systems in quantum logic.Published In: Asian-European Journal of Mathematics, 2023, v. 16, n. 8. P. 1Authored By: Dorninger, Dietmar; Länger, HelmutPublication Type: Academic Journal
- Spectral Test Generation for Boolean Expressions.Published In: International Journal of Software Engineering & Knowledge Engineering, 2023, v. 33, n. 8. P. 1239Authored By: Ayav, TolgaPublication Type: Academic Journal
- The spectra of quasi-Boolean algebras.Published In: Logic Journal of the IGPL, 2024, v. 32, n. 1. P. 139Authored By: Lv, Yajie; Chen, WenjuanPublication Type: Academic Journal