title: loop through metafields appending _indexNumber in liquid that need to be assigned to an object value to match to a specific key
body: <p>I have a dynamic number of metafields coming into Shopify. I have a special metafield that tells me how many metafield files to look for and I use that to specify the loop amount.</p>
  <p>I need to loop through these metafields and look for a specific matching key.</p>
  <p><code>numfiles</code> variable here is coming from that metafield that gives me the number of total metafield files to loop through.</p>
  <p>I have tried:</p>
  <pre><code>{% for i in (1..numfiles) %}
   {% assign currentMetafield = 'shop.metafields.field_name.value_name_' | append: i %}
   {% if currentMetafield['key_i_am_matching'] %}
    found a match
   {% else %}
    no match found :(
   {% endif %}
  {% endfor %}
  </code></pre>
  <p>However this doesn't work, my guess is that it doesn't work because the assigned <code>currentMetafield</code> is ultimately a string.</p>
  <p>I've tried to print out the value coming from the loop <code>{{currentMetafield}}</code> and the output of that is correctly matched to my metafield names. It looks like this:</p>
  <pre><code>shop.metafields.field_name.value_name_1
  shop.metafields.field_name.value_name_2
  shop.metafields.field_name.value_name_3
  </code></pre>
  <p>If I manually assign the metafield and look for a specific key, that works just fine.</p>
  <p>Say I know a specific key is in the first metafield file. I can just assign it like so</p>
  <p><code>{% assign metafield1 = shop.metafields.field_name.value_name_1 %}</code></p>
  <p>then i can do this:</p>
  <pre><code>{% if shop.metafields.field_name.value_name_1['key_i_am_looking_for'] %}
    found a match
  {% end if %}
  </code></pre>
  <p>This returns <code>found a match</code> predictively.</p>
  <p>I either need to turn this string into an object so that shopify recognizes it as a proper metafield file, or I need to do something else to try to find a match in a dynamic amount of metafields.</p>
  <p>Thanks for the help!</p>