Customize email template


I’m looking to write if / else statements in my email template. If we know the contacts first name we want to have the greeting: “Dear Joe,”. If the contact’s first name is unknown we want to remove the “Dear first_name” section and just start the email with the email body.

Can someone show me an example of how we can accomplish this using hubl?