Another approach without filters. The temp variable get set to “none” but the compare for it fails. Is that normal programming behavior?
{% set salutation = personalization_token('contact.salutation', 'none') %}
Salutation is: [{{salutation}}]<br/>
{% if salutation == "none" %}
{% else %}
Hi {{ contact.salutation }} {{ contact.lastname }} ,
{% endif %}
The saluation variable outputs none, but the compare fails and goes into the statment. Example output for a contact without a salutation:
Salutation is: [none]
Hi Ryan ,