title: EJS syntax error while compiling ejs code in Create Form
body: <p>I have a syntax error when I try to render this part of my template with EJS (on a node server).::</p>
  <p><a href="https://i.stack.imgur.com/tVyxu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tVyxu.png" alt="enter image description here" /></a></p>
  <p>I'm trying to show a view of a create form, so when the user leaves a blank input or doesn't select the dropdown option gets an error (using express validator).
  I works fine with an input, validates an error and keeps the data of all other inputs (so user won't have to retype all over again)</p>
  <p>But when using the option select, it's getting an error. Also the data should persist in the option select IF it's in blank or error in any other fields.</p>
  <p>I'm quite sure the error is here:</p>
  <pre><code>    &lt;label class=&quot;combo-form_titles_create&quot; for=&quot;os_min&quot;&gt;OS Minimum Requirement&lt;/label&gt;
          &lt;select 
            name=&quot;os_min&quot; 
            class=&quot;textArea__Create &lt;%= locals.errors &amp;&amp; errors.os_min ? : null %&gt;&quot;&gt;
            &lt;option value=&quot;&quot;&gt;Choose an Operating System&lt;/option&gt;
            &lt;%  
            let systems = ['Windows XP', 'Windows Vista', 'Windows 7', 'Windows 10'];
            %&gt;
            &lt;% for (const oneSystem of systems) { %&gt;
              &lt;option 
                value=&quot;&lt;%= oneSystem %&gt;&quot;
                &lt;%= locals.oldData &amp;&amp; (oneSystem == oldData.os_min) ? 'selected' : null %&gt; 
              &gt; &lt;%= oneSystem %&gt; &lt;/option&gt;
            &lt;% } %&gt;
          &lt;/select&gt;
          &lt;% if (locals.errors &amp;&amp; errors.os_min) { %&gt;
            &lt;div class=&quot;text-danger&quot;&gt;
              &lt;%= errors.os_min.msg %&gt;
            &lt;/div&gt;
          &lt;% } %&gt;
  </code></pre>
  <p>When using the inputs only there is no error</p>
  <pre><code>        &lt;input class=&quot;textArea__Create&quot; type=&quot;text&quot; name=&quot;os_rec&quot; placeholder=&quot;OS Recommended Requirement&quot; value=&quot;&lt;%= locals.oldData ? locals.oldData.os_rec : null%&gt;&quot;/&gt;
          &lt;% if(locals.errors &amp;&amp; errors.os_rec){ %&gt;
            &lt;p class=&quot;tableAdmin_Error&quot;&gt;&lt;%= errors.os_rec.msg  %&gt;  &lt;/p&gt;
          &lt;% } %&gt;
  </code></pre>