1{% set sizes = {
2 xs: 34,
3 s: 36,
4 m: 38,
5 l: 40,
6 xl: 42,
7} %}
8
9{% for k, v in sizes|filter((v, k) => v > 38 and k != "xl") %}
10 {{ k }} = {{ v }}
11{% endfor %}
12{# output l = 40 #}
1{% set sizes = [34, 36, 38, 40, 42] %}
2
3{{ sizes|filter(v => v > 38)|join(', ') }}
4{# output 40, 42 #}