Send mail with "if" command in body copy

Send mail with "if" command in body copy

Hi,

Is there a way to send mail with an "if" command in the body copy? I have two kinds of contact fields and I'd like the email to say:

Hi <contact>

But if the <contact> field is empty I'd like it to say:

Hi <contact_NEW>

How can I do that without ending up with Hi null <contact_NEW>?

Thank you for any help!

-silver