title: How to concatenate int with str type in Jinja2 template?
body: <p>I want to set a variable in jinja2 template which is a combination of string and a interger value.</p>
  
  <p>Code is as follows:</p>
  
  <pre><code>{% set the_var = 'Wan_Links.WAN_' + i + '.wan_link_type' %}
  </code></pre>
  
  <p>Here "i" is a dynamic value and is of type int. When I run the above code I get the below error:
  <strong>TypeError: cannot concatenate 'str' and 'int' objects</strong>.</p>
  
  <p>The expected output is <strong>the_var = Wan_Links.WAN_0.wan_link_type</strong> (i.e. i=0).
  Can anyone tell me how can I get this done?</p>