# Boolean operators

In computer science, the Boolean data type is a data type, having two values (usually denoted true and false), intended to represent the truth values of logic and Boolean algebra. It is named after George Boole, who first defined an algebraic system of logic in the mid 19th century. The Boolean data type is primarily associated with conditional statements, which allow different actions and change control flow depending on whether a programmer-specified Boolean condition evaluates to true or false. It is a special case of a more general logical data type; logic does not always have to be Boolean.^{[1]}

## Boolean operators

This website has an interactive tool to help you understand logic gates

Boolean operator | Definition |
---|---|

AND | The result is TRUE ( 1 ) if both inputs are TRUE ( 1 ). |

OR | The result is TRUE ( 1 ) if either input is TRUE ( 1 ) |

NOT | Also named an inverter. Inverts the result so TRUE ( 1 ) becomes FALSE ( 0 ) and FALSE ( 0 ) becomes TRUE ( 1 ). |

NAND | Also named a "Negative AND" The result is TRUE ( 1 ) if both inputs are FALSE ( 0 ). |

NOR | Also named "Negative OR". The result is TRUE ( 1 ) if any of the inputs are FALSE ( 0 ). |

XOR | Also named a "Exclusive OR". The result is TRUE ( 1 ) if either input is TRUE ( 1 ) but not if both inputs are TRUE ( 1 ). |

This is one of the better videos I've seen on boolean. Content gratefully used with permission : ^{[2]}

## A helpful android app

This app is a good tool to practice your boolean logic! Thank you to Max N. for the suggestion!

https://play.google.com/store/apps/details?id=com.Suborbital.CircuitScramble&hl=en

## Truth Tables

## Boolean Logic and Logic Gates

From crash course computer science comes this EXCELLENT video teaching us about boolean logic and logic gates^{[3]}

## Standards

- DefineGive the precise meaning of a word, phrase, concept or physical quantity. the Boolean operators: AND, OR, NOT, NAND, NOR and XOR.
- ConstructDevelop information in a diagrammatic or logical form. truth tables using the above operators.
- ConstructDevelop information in a diagrammatic or logical form. a logic diagram using AND, OR, NOT, NAND, NOR and XOR gates.