I'm trying to find out how I can put a condition within my loop as I print out list items...
<ul>
<% foreach (var filter in Model.Filter)
{ %>
<li <% filter.TagChecked == 1 ? //yes : //no %>><%: filter.TagLabel %> <span class="closeImage"><img src="/Content/Images/filterButtonClose.gif" /></span></li>
<% } %>
</ul>
I'm trying to see if a filter is checked... if yes, then I need to write the class and also add the image. If not, then just write a normal li