title: twig: IF with multiple conditions
body: <p>It seem I have problem with a twig if statement.</p>
  
  <pre><code>{%if fields | length &gt; 0 || trans_fields | length &gt; 0 -%}
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Unexpected token "punctuation" of value "|" ("name" expected) in 
  </code></pre>
  
  <p>I can't understand why this doesn't work, it's like if twig was lost with all the pipes.</p>
  
  <p>I've tried this :</p>
  
  <pre><code>{% set count1 = fields | length %}
  {% set count2 = trans_fields | length %}
  {%if count1 &gt; 0 || count2 &gt; 0 -%}
  </code></pre>
  
  <p>but the if also fail.</p>
  
  <p>Then tried this:</p>
  
  <pre><code>{% set count1 = fields | length &gt; 0 %}
  {% set count2 = trans_fields | length &gt; 0 %}
  {%if count1 || count2 -%}
  </code></pre>
  
  <p>And it still doesn't work, same error every time ...</p>
  
  <p>So... that lead me to a really simple question: does Twig support multiple conditions IF ?</p>