title: Testing variable equality in twig
body: <p>In <a href="http://www.twig-project.org/" rel="noreferrer">twig</a>, is there an easy way to test the equality of 2 variables?</p>
  
  <p><code>{% if var1 = var2 %}</code> isn't valid, <code>{% if var1 is sameas(var2) %}</code> only works if both are a strings...</p>
  
  <p>(from docs) "sameas checks if a variable points to the same memory address than another variable", like thats useful.</p>
  
  <p>So the only way I've found of comparing integers is to convert them both to strings:<br>
  <code>{% if var1|lower is sameas(var2|lower) %}</code></p>