Did you know that you can substitute in text for blank values? By using the
{!sObject.FieldName, substitute text including spaces} convention, blank values can be automatically replaced with default values.Furthermore, it looks like at the email templates recognize at least two Visualforce-esque functions, demonstrated in the following examples:
{!NullValue(Lead.Name,"visitor")}, which is the same as the substitution described above{!If(Lead.Name="Barack Obama","President","Citizen")}{!If(IsPickVal(Lead.Status,"New"),"Super Important","Somewhat Important")}
