Definition Logical equality is an operation on two logical values , typically the values of two propositions , that produces a value of true if and only if both operands are false or both operands are true .

It returns true , if either both inputs are true , or both inputs are false .
