Logical equality is a logical operation. It corresponds to equality (formula_1) in Boolean algebra and biconditional (written formula_2 or formula_3) in logic. It takes two inputs. It returns true if both inputs are true or if both inputs are false. Otherwise (when they are different), it returns false.