{% set distribution = field.value %} {% if distribution %} {% set cycleType = distribution.cycleType %} {% if cycleType == "day" %} {% set labelCycleType = "J" %} {% elseif cycleType == "week" %} {% set labelCycleType = "S" %} {% elseif cycleType == "month" %} {% set labelCycleType = "M" %} {% endif %} {% endif %} {% if cycleType is defined %} {% if cycleType == "year" %} A{{ distribution.cycleNumber }} {% else %} {{ labelCycleType ~ distribution.cycleNumber }}A{{ distribution.year|slice(2,2) }} {% endif %} {% endif %}