How to add customer metadata to my packing slip

I need to add my custom customer metadata to the address section on my packing slip. I have been using the following code:

{% assign customer.metafields.adv_reg.LICENSE = nil %}
{% if customer.metafields.adv_reg.LICENSE %}
{{ customer.metafields.adv_reg.LICENSE }}
{% endif %}

{% if customer.metafields.adv_reg.LICENSE != blank %}
{{ customer.metafields.adv_reg.LICENSE }}
{% endif %}

Hi @Nataleigh ,

You can use this code:

{% if customer.metafields.adv_reg.LICENSE != blank %}
  {{ customer.metafields.adv_reg.LICENSE }}
{% endif %}

This code will check if the Liscene metafield is not blank and display it on the packing slip.

Thanks, I tried it and it did not work. Not sure what is going on. The field is active in the customer profile and it has data populated.