Context: X wants to know about Y's food preferences.

X: Do you like Pizza?
Y: Only when it has pepperoni.

X: Would you like to go to a restaurant?
Y: that would be good