Logical functions. AND returns TRUE if all arguments are true; OR if any argument is true.
=AND(A1>0, B1>0) is true only if both A1 and B1 are positive.