there's also this posibility:

=--AND(A1="x",B1="x")