Using an If statement in an email template

I looks like the issue is still not fixed. When I put this in the template:
image

If I click the “Test Email” button I correctly receive an email response of:
image

However, if I actually create a certification and assign it to myself I get a different response:
image

I did not change anything in the email template.