Boolean Logic and Conditions |
|||
Boolean Algebra is a form of mathematics concerned with resolving logical problems. It was devised by the English mathematician George Boole (1815–1864) as a tool to study philosophical and mathematical problems, but has been adopted for use in expressing logical and conditional problems. In Designer, a constituent of Boolean Algebra called Boolean Logic , is used to quantify and resolve logical statements that may be TRUE or FALSE, as part of conditions. It does this by relating items to each other using keywords. Designer uses four such keywords: AND, OR, NAND, and NOR. These are explained later in this topic.
Designer uses Boolean Logic to assess the TRUE or FALSE state of a condition and its constituent Terms. A condition is a collection of Terms. A Term is a single statement that, at any given time, may be TRUE or FALSE. For example, a term may specify a day of the week, such as Monday. If the current day is Monday, then this term is TRUE, but on all other days it is FALSE.
To determine if a condition state is TRUE or FALSE, we must assess the TRUE or FALSE state of all the terms within it. To do this, we link all the terms together using the Boolean Operator associated with the condition. These links, their possible states and their results are usually shown in what we call a Truth Table . The following Truth Tables use two terms (term 1 and term 2), but any number of terms can be assessed in this way.
This Operator means that the condition is only TRUE if all terms in the condition are TRUE.
Term 1 |
Term 2 |
AND condition |
TRUE |
TRUE |
TRUE |
TRUE |
FALSE |
FALSE |
FALSE |
TRUE |
FALSE |
FALSE |
FALSE |
FALSE |
This Operator means that the condition is only TRUE if any terms in the condition are TRUE.
Term 1 |
Term 2 |
OR condition |
TRUE |
TRUE |
TRUE |
TRUE |
FALSE |
TRUE |
FALSE |
TRUE |
TRUE |
FALSE |
FALSE |
FALSE |
This Operator means NOT AND. It is the opposite of AND. The condition is only TRUE if one or all of the terms in the condition is FALSE.
Term 1 |
Term 2 |
NAND condition |
TRUE |
TRUE |
FALSE |
TRUE |
FALSE |
TRUE |
FALSE |
TRUE |
TRUE |
FALSE |
FALSE |
TRUE |
This Operator means NOT OR. It is the opposite of OR. The condition is only TRUE if all terms in the condition are FALSE.
Term 1 |
Term 2 |
NOR condition |
TRUE |
TRUE |
FALSE |
TRUE |
FALSE |
FALSE |
FALSE |
TRUE |
FALSE |
FALSE |
FALSE |
TRUE |