title: Nested if else in Twig
body: <p>Is there any way to implement nested if else functionality in twig? I have tried the following but it isn't working:</p>
  
  <pre><code>&lt;body 
          {% if page|default('login') == 'login' %} 
                class="login"
          {% else if( page == 'other') %}
                class="login"
          {% else %}
                class="noclass"
          {% endif %}&gt;
  &lt;/body&gt;
  </code></pre>