openskills.info
Course Preview

Boolean Logic

Boolean logic is the algebra of true and false values, using operations like AND, OR, and NOT to combine conditions. It underpins digital circuit design, programming conditionals, database queries, and any system that makes binary decisions.

itComputer fundamentals

Boolean Logic

Boolean logic gives you a small language for decisions. A Boolean value has two possible states: true or false. You combine those values with operators to describe when a larger condition is true.

The model appears throughout computing. A program branches when a condition is true. A search keeps or rejects a record. A digital circuit combines high and low signals through logic gates. The notation changes across these settings, but the underlying truth relationships stay recognizable.

The three core operators

Start with three operators:

  • NOT reverses one truth value.
  • AND is true only when both inputs are true.
  • OR is true when at least one input is true.

In Boolean logic, OR is inclusive. It is true when either input is true and also when both are true. XOR, or exclusive OR, handles the different rule: exactly one input must be true.

Suppose has_badge means a worker has a valid badge, and door_unlocked means the door is already unlocked.

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Sources