там скорее если а фолс, то вернетсч а, иначе просто б вернуть
logical OR - если а == false то чекает второй, если a == true, сразу возвращает true logical AND - если а == true то чекает второй, если a == false, сразу возвращает false
logical OR - если а == false то чекает второй, если a == true, сразу возвращает true logical AND - если а == true то чекает второй, если a == false, сразу возвращает false
The conditional logical AND operator &&, also known as the "short-circuiting" logical AND operator, computes the logical AND of its operands. The result of x && y is true if both x and y evaluate to true. Otherwise, the result is false. If x evaluates to false, y is not evaluated.
The & operator computes the logical AND of its operands. The result of x & y is true if both x and y evaluate to true. Otherwise, the result is false.
The & operator evaluates both operands even if the left-hand operand evaluates to false, so that the operation result is false regardless of the value of the right-hand operand.