title: Comma separated list in Liquid
body: <p>I am pulling metadata values in a for loop and need to display them in a comma separated list.</p>
  
  <p>Code (whitespace added for readability):</p>
  
  <pre><code>{% if asset.metadata['field01'] %}{{asset.metadata['field01']}}{% endif %}
  {% if asset.metadata['field02'] %}{{asset.metadata['field02']}}{% endif %}
  {% if asset.metadata['field03'] %}{{asset.metadata['field03']}}{% endif %}
  </code></pre>
  
  <p>Currently this displays as: <code>Field 01 ValueField 02 ValueField 03 Value</code>, but I would like it to display as <code>Field 01 Value, Field 02 Value, Field 03 Value</code></p>
  
  <p>Manually typing <code>,</code> after each if statement leaves a comma after the last value.</p>