title: Embed if statement inside a "a href" tag in Razor
body: <p>How to embed if statement inside an "a href" tag.</p>
  
  <p>Like for example</p>
  
  <pre><code>&lt;a id="spnMarkButton" href="javascript:void(0);" @if(condition here) style="display:none;" else style="display:block;" onclick="MarkStore(@storeRating.StoreId);"&gt;
  </code></pre>
  
  <p>But the code above is not working.</p>