title: Using razor syntax in javascript
body: <p>This is the code I have.  I basically want to look at my model and see if anything exists.  Using ternary operator to show or hide based on existence.</p>
  
  <pre><code>$(document).ready(function() {
          (@Model.MyProperties.Any()) ? $('#removeall-toggle').show() : $('#removeall-toggle').hide();
      });
  </code></pre>
  
  <p>I'm getting an error in chrome dev tools that says:</p>
  
  <pre><code>Uncaught ReferenceError: False is not defined
  </code></pre>
  
  <p>How do i fix this, or is this a better way of accomplishing this?</p>