1 "!" (logical negation), "&; & amp (logical AND) and || (logical OR) are three logical operators.
2 "Logical AND" is equivalent to "AND" in life, that is, when two conditions are established at the same time, the result of "Logical AND" operation is "true".
Extended data:
Logical operation is also called Boolean operation? Boolean used mathematical methods to study logical problems and successfully established logical calculus. He used equality to express his judgment and regarded reasoning as the transformation of equality.
The effectiveness of this transformation does not depend on people's interpretation of symbols, but only on the combination law of symbols. This logic theory is usually called Boolean algebra. Logical negation refers to the inverse of the original value.
However, if the operand on the left is false, the expression on the right will not be evaluated and false will be obtained directly. Similar to the right short circuit. | is called logical OR, and the result is false only when both operands are false.
|||| is called concise OR or short circuit OR, and the result is false only when both operands are false. However, if the operand on the left is true, the expression on the right will not be evaluated and true will be obtained directly. Similar to the right short circuit.