title: ejs How do I get if-then-else behavior in scriptlet
body: <p>In generating HTML with node.js EJS I'm not able to use an "else if" 
  if my scriptlet tags look like:</p>
  
  <pre><code> &lt;% var qtype; %&gt;
   &lt;% if (qobj.ansType == 1) { %&gt;
   &lt;% qtype = 'multiChoice'; %&gt;
   &lt;% } %&gt;
   &lt;% else if (qobj.ansType == 0) { %&gt;
   &lt;% qtype = 'shortAnswer'; %&gt;
   &lt;% } %&gt;
   &lt;% else { %&gt;
   &lt;% qtype = 'longAnswer'; %&gt;
   &lt;% } %&gt;
  
   Type:&lt;%- select_tag("type",
      [{"value": 'multiChoice',"text": "Multiple Choice"},
      {"value": 'shortAnswer',"text": "Short Answer"},
      {"value": "longAnswer","text": "Text Answer"}],
      {"value": qtype}) %&gt;   //  qtype should be set based on if-else statements above
  </code></pre>
  
  <p>I get: <code>Unexpected else token in question.ejs while compiling ejs</code>      </p>
  
  <p>I'm trying to get the default item in the select pulldown to be conditional based on the value of qobj.ansType.   It should be set to multiChoice if qobj.ansType = 1 and shortAnswer if qobj.ansType = 0 .  </p>
  
  <p>Doc for EJS says I can use full javascript in scriptlets but it looks like 
  else if isn't allowed so is it full javascript or not?  I'd prefer not doing 3 ifs in a row.   </p>