title: edit and delete links in table based on if statement
body: <p>I have the following code, it displays existing sets of cards for a table top game and allows you to edit or delete them. I would like to only allow edit and delete on sets with a weight greater than 100 and display "adminonly" for those that are locked (weight less than 100). is there a simple way to do this, I can provide the full page code if necessary</p>
  
  <pre><code>    &lt;h2&gt;Existing card sets&lt;/h2&gt;
  &lt;table style="1px solid black"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;Delete&lt;/th&gt;
        &lt;th&gt;Edit&lt;/th&gt;
        &lt;th&gt;Weight&lt;/th&gt;
        &lt;th&gt;Active&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;%
        for (PyxCardSet cardSet : cardSets) {
      %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%=cardSet.getName()%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href="?delete=&lt;%=cardSet.getId()%&gt;" onclick="return confirm('Are you sure?')"&gt;Delete&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href="?edit=&lt;%=cardSet.getId()%&gt;"&gt;Edit&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=cardSet.getWeight()%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=cardSet.isActive()%&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;%
        }
      %&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>