title: How to get value from key when sending a dictionary to jinja
body: <p>I send my dictionary - content - to a template which looks like this. Inside content is multiple dictionaries. One of them is named like_dict which looks like this : {1: 18} {2: 14} {3: 15} and another is named info which holds my user id. I use this code to sort it: </p>
  
  <pre><code>{% for x in info %}
  {% if x.id in like_dict %}
  &lt;p&gt; the value is: {{ like_dict.x.id }} &lt;/p&gt;
  {% endif %}
  {% endfor %} 
  </code></pre>
  
  <p>Everything seems to be working, except the part within the paragraph tags. When I replace x.id with the number of my ID (like this: like_dict.1 ) it prints '18' just fine. When I leave it as I have it in the example (like_dict.x.id), it finds x.id in like_dict, but only prints 'the value is:' without stating the dictionary value. When I try to do this - like_dict[1] - I get an error for using brackets. Can anyone direct me towards how I would go about printing only the value when the key matches my ID?  </p>