Is this what you want:

=IF(L7<0,J7,IF(AND(K7>0,L7>0),L7,J7))

Regards