YOU SAID:
I would like to drink coffee if I go poo poo
INTO JAPANESE
うんちに行ったらコーヒーを飲みたい
BACK INTO ENGLISH
I want to drink coffee when I go to poop
INTO JAPANESE
うんちに行くときにコーヒーを飲みたい
BACK INTO ENGLISH
I want to drink coffee when I go to poop
That didn't even make that much sense in English.