In my MySql query I need to check something like:

```
... WHERE DATE_ADD(IF(Date1>Date2, Date1, Date2), INTERVAL 3 DAY)<CURDATE()

```

But apparently this doesn't work, this condition always return true for some reason I don't know.
What am I doing wrong? Isn't it possible to use IF inside a DATE\_ADD function?