We can target our customers using their provided gender (him/her). The following is an example of how we can show different products to them:
{% if contact.5 == 1 %}
this is for him
{% else %}
this is for her
{% endif %}
If you wish, you could broaden the gender logic establishing more categories.