{% assign email = Request.Form.Email | strip %}{% if email == '[email protected]' %} [email protected] {% else %} [email protected] {% endif %}
The issue was likely due to hidden characters, such as extra spaces or line breaks, in the Request.Form.Email value. This caused the conditional comparison to fail, even though the email appeared correct.
To resolve this, I used the strip filter in Liquid to remove any leading or trailing spaces from the input value before performing the comparison.