How can I correctly edit an email template for different product variants?

{% if line.variant.title == ‘ProductName/VaraintName’ %}
You are buying some awesome shoes!
{% endif %}

What am I doing wrong here. I am trying to input this in the email template and depending on which Variant they order I want to display such comments

Hi @Samik1 ,

I am assuming this is for the order confirmation email. You have the right code. Make sure you have the exact product title though. You can try pasting the code below to check the line.variant.title and make dummy product with zero cost. Buy that product and check your email.

{% if line.variant.title != blank %}
            The variant title is: {{ line.variant.title }}

          {% endif %}