{% for tag in customer.tags %} for custom menu

i need a custom menu appears to customer tag

{% for tag in customer.tags %}
 {% if tag == "Designer" %}
{% assign main_linklist = "main-menu-designer" %}
 {% endif %}
{% endfor %}

but not working and here all header code

{%- assign default_tab_height = 76 -%}
{% if section.settings.show_announcement_bar %}
  
{% endif %}

{%- capture image_size -%}{{ section.settings.logo_max_width | times: 2 }}x{%- endcapture -%}
{%- capture mobile_image_size -%}{{ section.settings.mobile_logo_max_width | times: 2 }}x{%- endcapture -%}

{% capture logo_html %}
  
  {% if template.name == 'index' %}
    # 
  {% else %}
    

  {% endif %}

    
    
      
      {% if section.settings.logo != blank %}
        
      {% else %}
        {{ shop.name }}
      {% endif %}
    

    
    
      
      {% if section.settings.mobile_logo != blank %}
        
      {% elsif section.settings.logo != blank %}
        
      {% else %}
        {{ shop.name }}
      {% endif %}
    
  {% if template.name == 'index' %}
    

  {% else %}
    
  {% endif %}
{% endcapture %}

{% if section.settings.quicklink_type == "quicklink_newsletter" %}

{% endif %}

{% schema %}
  {
    "name": "Header",
    "settings": [
      {
        "type": "paragraph",
        "content": "Learn more about how to use the different features in the header [here](https://cleancanvas.co.uk/support/expression/header-and-footer)"
      },
      {
        "type": "image_picker",
        "id": "logo",
        "label": "Logo"
      },
      {
        "type": "text",
        "id": "logo_max_width",
        "label": "Logo width (in pixels)",
        "default": "250"
      },
      {
        "type": "image_picker",
        "id": "mobile_logo",
        "label": "Alternative mobile logo"
      },
      {
        "type": "text",
        "id": "mobile_logo_max_width",
        "label": "Mobile logo width (in pixels)",
        "default": "250"
      },
      {
        "type": "header",
        "content": "Announcement bar"
      },
      {
        "type": "checkbox",
        "id": "show_announcement_bar",
        "label": "Show announcement",
        "default": false
      },
      {
         "type": "text",
         "id": "announcement_bar_text",
         "label": "Text",
         "default": "Add notices for your shoppers here"
      },
      {
         "type": "url",
         "id": "announcement_bar_url",
         "label": "Link"
      },
      {
        "type": "color",
        "id": "announcement_bar_bg",
        "label": "Background color",
        "default": "#484848"
      },
      {
        "type": "color",
        "id": "announcement_bar_text_color",
        "label": "Text color",
        "default": "#ffffff"
      },
      {
        "type": "header",
        "content": "Navigation"
      },
      {
        "type": "link_list",
        "id": "main_linklist",
        "label": "Menu",
        "default": "main-menu"
      },
      {
        "type": "checkbox",
        "id": "show_mobile_collection_images",
        "label": "Show collection images in mobile menu",
        "default": true
      },
      {
        "type": "header",
        "content": "Search"
      },
      {
        "type": "paragraph",
        "content": "The following links show when the search bar is revealed."
      },
      {
        "type": "text",
        "id": "search_links_horizontal_title",
        "label": "Horizontal links title"
      },
      {
        "type": "link_list",
        "id": "search_links_horizontal_linklist",
        "label": "Horizontal links menu",
        "info": "Does not support dropdown menus"
      },
      {
        "type": "checkbox",
        "id": "search_linklist_horizontal_fancy",
        "label": "Show collection images",
        "default": true
      },
      {
        "type": "text",
        "id": "search_links_vertical_title",
        "label": "Vertical links title"
      },
      {
        "type": "link_list",
        "id": "search_links_vertical_linklist",
        "label": "Vertical links menu",
        "info": "Does not support dropdown menus"
      },
      {
        "type": "header",
        "content": "Language Selector",
        "info": "To add a language, go to your [language settings.](/admin/settings/languages)"
      },
      {
        "type": "checkbox",
        "id": "show_locale_selector",
        "label": "Show language selector",
        "default": true
      },
      {
        "type": "header",
        "content": "Currency Selector",
        "info": "To add a currency, go to your [payment settings.](/admin/settings/payments)"
      },
      {
        "type": "checkbox",
        "id": "show_currency_selector",
        "label": "Show currency selector",
        "default": true
      },
      {
        "type": "header",
        "content": "Quick link"
      },
      {
        "type": "checkbox",
        "id": "quicklink_show",
        "label": "Show",
        "default": true
      },
      {
        "type": "radio",
        "id": "quicklink_type",
        "label": "Link type",
        "options": [
          { "value": "quicklink_newsletter", "label": "Newsletter signup" },
          { "value": "quicklink_phone", "label": "Phone number" },
          { "value": "quicklink_email", "label": "Email" },
          { "value": "quicklink_page", "label": "Page" }
        ],
        "default": "quicklink_newsletter"
      },
      {
        "type": "text",
        "id": "quicklink_content",
        "label": "Text",
        "default": "Get on the list"
      },
      {
        "type": "url",
        "id": "quicklink_url",
        "label": "Link",
        "info": "Add tel: followed by a phone number for phone links and mailto: followed by an email address for email links"
      }
    ]
  }
{% endschema %}

It looks like you assign a variable called main_linklist, but you never actually use it, as you still loop through your settings link list via

{% for link in linklists[section.settings.main_linklist].links %}

I think you’d want to instead have the loop do something like:

{% assign main_linklist = section.settings.main_linklist %}

{% for tag in customer.tags %}
 {% if tag == "Designer" %}
   {% assign main_linklist = "main-menu-designer" %}
 {% endif %}
{% endfor %}

{% for link in linklists[main_linklist].links %}
...