Boolean operator

A boolean operator is a logic operator such as AND, OR, or NOT that combines input conditions or changes them in digital circuits. In Intro to Electrical Engineering, you use it to build and read truth tables and logic expressions.

Last updated July 2026

What is boolean operator?

A boolean operator is the logic rule that tells a digital circuit how to combine inputs, or how to invert one input, in Intro to Electrical Engineering. The common operators you see first are AND, OR, and NOT, and they let you write a circuit’s behavior as a short logic expression instead of a long verbal description.

Think of a boolean operator as the action in the logic sentence. The inputs are usually boolean variables, which only take two values, 0 and 1, or false and true. The operator tells you what output should happen for each input combination. For example, with AND, the output is 1 only when both inputs are 1. With OR, the output is 1 when at least one input is 1. With NOT, the output flips a 1 to 0 and a 0 to 1.

This matters because digital circuits are built from these exact rules. A switch network, gate diagram, or microcontroller condition can all be described with boolean operators. If a lab asks you to model a light that turns on only when two switches are on, you are really writing an AND relationship. If the light turns on when either switch works, that becomes OR. If a signal is active low, a NOT operator often shows the inversion.

Boolean operators also connect directly to truth tables. A truth table lists every possible input combination and shows the output for each row. That is how you check whether a logic expression matches the circuit behavior you want. When you move between a diagram, an expression, and a truth table, you are using boolean operators as the bridge.

A common mistake is mixing up the operator with the variable. The variable is the input name, like A or B. The operator is the relationship between them, like A AND B or NOT A. If your output looks wrong, the first thing to check is whether you used the right operator for the condition you meant to describe.

Why boolean operator matters in Intro to Electrical Engineering

Boolean operators are the vocabulary of digital logic in Intro to Electrical Engineering. Once you understand them, you can read gate diagrams, write logic expressions, and predict how a circuit should behave before you ever build it.

They also give you a clean way to move between different representations of the same system. A lab might describe a simple alarm with words, ask you to draw the circuit, and then have you fill in a truth table. Boolean operators are what let you translate between those versions without guessing.

This shows up again when you start simplifying logic. If a circuit uses too many gates, you can often rewrite the expression to make it shorter or cleaner. That is useful in problem sets and in lab debugging, because a simpler expression usually means fewer places for an error to hide.

Boolean operators also connect to later topics like control logic, microcontrollers, and digital systems. Any time a design depends on conditions such as "if sensor A is on and sensor B is off," you are working with boolean logic even if the circuit looks more advanced than the first truth table you drew.

Keep studying Intro to Electrical Engineering Unit 14

How boolean operator connects across the course

AND

AND is one of the basic boolean operators and gives an output of 1 only when every input condition is true. In Intro to Electrical Engineering, it often matches circuits where two requirements have to happen together, such as two switches both being closed. If you are building or reading a truth table, AND is the easiest place to see how a logic rule filters inputs.

OR

OR returns 1 when at least one input is true, so it models a choice between conditions rather than a double requirement. In circuit problems, that can look like two possible paths that turn on the same output. Students often confuse OR with AND because both combine inputs, but the output patterns are very different in a truth table.

NOT

NOT is the operator that flips a signal, turning true into false and false into true. In electrical engineering, this shows up when a circuit uses an inverted signal or active-low behavior. It is also the easiest way to see that boolean operators are not all combining rules, since one of them changes a single variable instead of comparing two inputs.

boolean variable

A boolean variable is the input or signal that can only be 0 or 1, while a boolean operator tells you how to process those values. You usually label variables first, then apply operators to build a logic expression. If you mix them up, your expression may be grammatically wrong even if the idea in your head was correct.

Is boolean operator on the Intro to Electrical Engineering exam?

A quiz problem might give you a short circuit description, like a lamp that turns on only if both sensors are active, and ask you to choose the correct operator or write the logic expression. You may also see a truth table and need to identify whether the relationship is AND, OR, or NOT. In lab work, this shows up when you test a gate circuit with input switches and compare the measured output to the expected table. The skill is not memorizing the symbol alone, but matching the operator to the condition being described. If the prompt gives you a diagram, trace each input row carefully and check whether the output changes only when all inputs are 1, when any input is 1, or when the signal is inverted.

Boolean operator vs boolean variable

A boolean variable is the signal or input name, like A or B, while a boolean operator is the rule that acts on those values, like AND, OR, or NOT. A variable can sit by itself in a truth table, but an operator tells you how one or more variables combine. If you treat them as the same thing, logic expressions and gate diagrams get hard to read fast.

Key things to remember about boolean operator

  • A boolean operator is the logic rule that combines or flips binary inputs in a digital circuit.

  • AND, OR, and NOT are the basic operators you will use most often in Intro to Electrical Engineering.

  • Boolean operators connect directly to truth tables, which show the output for every input combination.

  • A boolean variable is the input itself, but the operator tells you what relationship those inputs have.

  • If you can translate between words, logic expressions, and truth tables, you are using boolean operators the right way.

Frequently asked questions about boolean operator

What is boolean operator in Intro to Electrical Engineering?

A boolean operator is a logic symbol or word such as AND, OR, or NOT that tells a circuit how to combine binary inputs or invert one input. In Intro to Electrical Engineering, you use it to write logic expressions and fill out truth tables for digital circuits. It is the rule, not the input signal itself.

What is the difference between a boolean operator and a boolean variable?

A boolean variable is the name of a binary input, like A, B, or a sensor signal. A boolean operator is the action you apply to those variables, such as AND, OR, or NOT. If you know the variable values but not the operator, you still do not know how the circuit output should behave.

How do boolean operators show up in truth tables?

Each operator creates a different output pattern across the rows of a truth table. AND gives 1 only when all inputs are 1, OR gives 1 when at least one input is 1, and NOT flips a single input. Reading the table is one of the fastest ways to check whether you picked the right operator.

How do I know whether to use AND or OR in a circuit problem?

Use AND when every condition has to be true for the output to happen. Use OR when any one of the listed conditions can trigger the output. A good shortcut is to look for words like both, and, only if, versus either, or, at least one.