Learn in the textbookSets and Logical Operations
DefinitionA logical operation (論理演算) is any operation that takes only the two values true (1) and false (0) as input and returns 1 or 0 by a fixed rule.
ExplanationTypical operations include AND and OR, along with negation, which takes just one input. Expressions combining operations are evaluated from the innermost brackets outward and are used in search conditions and in bit-by-bit processing inside computers. The intersection, union, and complement of sets correspond to the logical product, logical sum, and negation, respectively.
AnalogyLike a clerk who answers only "yes" or "no" and, from the one or more answers received, returns a single "yes" or "no" by a fixed procedure.
Memory hookIt is also called a Boolean operation, after George Boole, the mathematician who systematized two-valued calculation.