# Logical Operations in Computer Science and Digital Electronics

**1. Primary Logical Operations**

**AND (Conjunction)****Symbol:**∧**Truth Table:**True if both inputs are true.**Usage:**Used in conditions where a combined set of criteria must be met.**Formula:**A ∧ B**Example:**Used in programming to check if two conditions are simultaneously true.**Remembering:**Think "both must be true."

**OR (Disjunction)****Symbol:**∨**Truth Table:**True if at least one input is true.**Usage:**Applied when any one of multiple criteria suffices.**Formula:**A ∨ B**Example:**Used in filtering data; e.g., displaying records if one or more conditions match.**Remembering:**Think "either can be true."

**NOT (Negation)****Symbol:**¬**Truth Table:**Inverts the input; true becomes false and vice versa.**Usage:**Applied to reverse a condition’s logic.**Formula:**¬A**Example:**Used in programming to reverse a boolean condition.**Remembering:**Think "opposite."