How to render a state abbreviation in Craft Commerce? Folks, this has to be easier than I've made it. In a front-end template, how do you grab a state abbreviation from a customer's address in Craft Commerce?

{$ set addresses = craft.commerce.customer.addresses $}
{% for address in addresses %}
  &lt;-- this is where I want to show the abbreviation --&gt;
  {{ address.state.abbreviation }}
{% endfor %}
I received an answer on Slack from Stephen Callendar.

{% set addresses = craft.commerce.customer.addresses %}
{% for address in addresses %}
  {% if address.getState() %}
    {{ address.getState().abbreviation }}
  {% endif %}
{% endfor %}