title: Underscore templating: Can't get switch to work
body: <p>I can't get a simple switch statement working in my underscore template. It's using the value of a variable called UserType which I've checked exists by displaying it with &lt;%= UserType %>.</p>
  
  <p>Code coming up:</p>
  
  <pre><code>&lt;% switch(UserType) { %&gt;
      &lt;% case 13: %&gt;
          &lt;button id="schoolButton" value="schools" class="gridChooser k-textbox"&gt;Schools&lt;/button&gt; 
      &lt;% case 12: %&gt;
          &lt;button id="teacherButton" value="teachers" class="gridChooser k-textbox"&gt;Teacher&lt;/button&gt; 
      &lt;% case 8: %&gt;
          &lt;button id="classButton" value="classes" class="gridChooser k-textbox"&gt;Classes&lt;/button&gt; 
          &lt;button id="testButton" value="tests" class="gridChooser k-textbox"&gt;Test&lt;/button&gt; 
  &lt;% } %&gt;
  </code></pre>
  
  <p>Any help much appreciated - thanks.</p>