{% if customer.tags contains "Yueai wellness menu" %} {% assign menu = 'yu-ai-wellness-menu' %} {% else %} {% assign menu = 'normal-menu' %} {% endif %} {% for link in linklists[menu].links %} //code to output your menu items. {% endfor %}