Answers.Body: <p>Is this what you're after?</p>
  
  <pre><code>{% for row in block.tableHandle %}
  
      {% for columnHandle, columnValue in row %}
          {# If not col1 #}
          {% if loop.index != 1 %}
              &lt;p&gt;Do whatever you want with: {{ columnValue }}&lt;/p&gt;
          {% endif %}
      {% endfor %}
  
  {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-03T22:29:08.173Z
Answers.LastActivityDate: 2017-09-03T22:29:08.173Z
Answers.UserDisplayName: Wei
Answers.Body: <p>I'm not 100% sure I'm following the question, but if you just want to output every <code>col2</code> and <code>col4</code> row value, it'd be as simple as:</p>
  
  <pre><code>&lt;ul&gt;
      {% for row in block.tableHandle %}
          &lt;li data-feature="{{ row.description }}"&gt;{{ row.col2 }} - {{ row.col4 }}&lt;/li&gt;
      {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>There isn't a native way to loop directly by a column's handle.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-04T16:03:32.500Z
Answers.Text: I want to loop by column. Output all rows in column col2, all rows for col3 and all rows in col4 but in a loop. I don't want to repeat the codes 3 times.
Answers.UserDisplayName: NovoWeb
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-03T19:03:55.907Z
Answers.LastActivityDate: 2017-08-04T19:48:35.970Z
Answers.LastEditDate: 2017-08-04T19:48:35.970Z
Answers.UserDisplayName: Brad Bell
Body: <p>How can I loop from col2 to col4 ? Or loop by column heading handle?
  Remplace {{ row.<strong><em>col2</em></strong> }}</p>
  
  <pre><code>&lt;ul class="features small-font-size"&gt;
    {% for row in block.tableHandle %}
  
        &lt;li data-feature="{{ row.description }}"&gt;{{ row.col2 }}&lt;/li&gt;
  
    {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
Tags: <loop><table-field><table>
Title: Loop by column from a table
ThreadText: # Loop by column from a table
  
  (Asked by: username_0 on 2017-08-03)
  
  How can I loop from col2 to col4 ? Or loop by column heading handle?
  Remplace {{ row.***col2*** }}
  
  ```
  <ul class="features small-font-size">
    {% for row in block.tableHandle %}
  
        <li data-feature="{{ row.description }}">{{ row.col2 }}</li>
  
    {% endfor %}
  </ul>
  
  ```
  
  **Tags:** loop, table-field, table
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-09-03. Score: 1
  
  Is this what you're after?
  
  ```
  {% for row in block.tableHandle %}
  
      {% for columnHandle, columnValue in row %}
          {# If not col1 #}
          {% if loop.index != 1 %}
              <p>Do whatever you want with: {{ columnValue }}</p>
          {% endif %}
      {% endfor %}
  
  {% endfor %}
  
  ```
  
  
  ---
  
  ### Answer by username_2 on 2017-08-03. Score: 0
  
  I'm not 100% sure I'm following the question, but if you just want to output every `col2` and `col4` row value, it'd be as simple as:
  
  ```
  <ul>
      {% for row in block.tableHandle %}
          <li data-feature="{{ row.description }}">{{ row.col2 }} - {{ row.col4 }}</li>
      {% endfor %}
  </ul>
  
  ```
  
  There isn't a native way to loop directly by a column's handle.
  
  > **Comments:**
  > **username_0**: I want to loop by column. Output all rows in column col2, all rows for col3 and all rows in col4 but in a loop. I don't want to repeat the codes 3 times.  
  
  ---
  
  