title: EJS if statement doesn´t works
body: <p>I´m novice in web development and I´ve been learning some nodejs stuff as well as ejs in the last couple days. I have been faced a issue regarding  if statement at ejs. When I try compare disciplina.id with value obtained from element this bunch of code doesn´t work properly, but if I compare to a number, it works well. The error shows the &quot;el&quot; variable as not define, but console.log() prints the value from selected element. Is there some tip about if statement in Ejs? Some reason for it?</p>
  <pre><code>&lt;script&gt;
                  function addOnComboList() 
                  {
                      var el = document.getElementById(&quot;listaDisciplina&quot;);
                      var tabela = document.getElementById(&quot;itensSelecionados&quot;);
                      var row = tabela.insertRow(1);
                      var cellNome = row.insertCell(0);
                      var cellAula = row.insertCell(1);
                      var cellRelogio = row.insertCell(2);
                      var cellTipo = row.insertCell(3);
                      var cellOpcao = row.insertCell(4);
  
                      console.log(el.value);
  
                   &lt;% disciplinas.forEach(disciplina =&gt; { %&gt;
                      &lt;% if (el.value === disciplina.id) { %&gt;
                              cellNome.innerHTML = &quot;&lt;%= disciplina.nome %&gt;&quot;;
                              cellAula.innerHTML = &quot;&lt;%= disciplina.cargaHorariaAula %&gt;&quot;;
                              cellRelogio.innerHTML = &quot;&lt;%= disciplina.cargaHorariaRelogio %&gt;&quot;;
                              cellTipo.innerHTML = &quot;&lt;%= disciplina.tipo %&gt;&quot;;
                              cellOpcao.innerHTML = &quot;&lt;a class='btn btn-danger' href=''&gt;Deletar&lt;/a&gt;&quot;;
                      &lt;% } %&gt;
                      
                   &lt;% }); %&gt;
  
                          
  
  
                  }
              &lt;/script&gt;
  </code></pre>
  <p>Error printed:</p>
  <pre><code>ReferenceError: C:\planoapp\views\planotrabalho\create.ejs:121
      119| 
  
      120|                  &lt;% disciplinas.forEach(disciplina =&gt; { %&gt;
  
   &gt;&gt; 121|                     &lt;% if (el.value == disciplina.id) { %&gt;
  
      122|                             cellNome.innerHTML = &quot;&lt;%= disciplina.nome %&gt;&quot;;
  
      123|                             cellAula.innerHTML = &quot;&lt;%= disciplina.cargaHorariaAula %&gt;&quot;;
  
      124|                             cellRelogio.innerHTML = &quot;&lt;%= disciplina.cargaHorariaRelogio %&gt;&quot;;
  
  
  el is not defined
      at eval (eval at compile (C:\planoapp\node_modules\ejs\lib\ejs.js:662:12), &lt;anonymous&gt;:46:8)
      at Array.forEach (&lt;anonymous&gt;)
  supressed stack trace
  </code></pre>