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".
3 "Logical OR" is equivalent to "OR" in life. When either of the two conditions is satisfied, the result of the logical OR operation is true.
4 "Logical negation" refers to the negation of the original value.
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.
Logical operation is used to judge whether a thing is right or wrong, or whether it is right or wrong. The result of judgment is binary, that is, there is no "may be" or "may not be". The usage of this "possibility" is a vague concept. Binary operation is carried out in a computer, and the result of logical judgment is only two values, which are called these two. Where "1" means that the result of logical operation is "established", and if the result of a logical expression is "0", then the content expressed by the logical expression is "not established".
References:
Baidu Encyclopedia-Logic Non-Baidu Encyclopedia-Logic and Baidu Encyclopedia-Logical OR