title: Dynamic variable in Twig, example?
body: <p>I don't quite understand how the attribute function in Twig works. Can somebody help me with an example?</p>
  
  <p>I have a field in a SQL that is named dynamic. I could be eg "field27", but I don't know the number, the number is saved in radio.id. I would like to do someting like this:</p>
  
  <pre><code>{% for radio in gruppeType.radios %}
  &lt;td&gt;&lt;!-- value of "field" + radio.id--&gt;&lt;/td&gt;
  {% endfor %}
  </code></pre>
  
  <p>How can I use field + radio.id as the name of the twig-variable?</p>