I'd like to only have the email notification sent when there are tasks. As is, when there are no tasks, the email just sends the template with no tasks.
("target end" > startOfDay(-5) and status != done and "target end" <= endOfDay() and status != done OR "target end" < -5d and status != done)
I've seen this thread, but this is not what I need.