{% assign collection_handles = 'television-screen,projectors,washing-machine' | split: ',' %} {% for handle in collection_handles %} {% assign collection = collections[handle] %} {% endfor %}