YOU SAID:
When cat is dog but cat no dog cat yes
INTO JAPANESE
猫が犬で猫が犬でない場合猫はい
BACK INTO ENGLISH
If the cat is a dog and the cat is not a dog Cat Yes
INTO JAPANESE
猫が犬で猫が犬ではない場合猫はい
BACK INTO ENGLISH
If the cat is a dog and the cat is not a dog Cat Yes
That didn't even make that much sense in English.