A computer is a collection of transistors and circuits.
These components have two states:
on, a current is flowing through the component
off, a current is not flowing through the component
These two states can easily be represented by using binary:
1 = on (TRUE)
0 = off (FALSE)
When comparing values from several states, boolean logic can be utilized to determine if the values are the same or different. George Boole found a connection between algebra and logic while researching mathematical theories. This gave rise to the hypothesis that a true or false value would always be produced by comparing various states using the three primary requirements. Later on, this was referred to as a boolean data type.
The three main types of conditions are:
- AND
- OR
- NOT