I have code that looks like this (pulling in 3 fields from a sql database), but I want it to only show the fields if <%=rs("UnitPric e3")%> is greater than 0. How do I write the if statement on my asp page?
I've attached an image of what I get without the IF statement - I don't want to see the order button or the $ if the unit price is <0.
Thanks for any help.
Code:
<div class="orderItem">
<a href="http://www.xyz.com/eshop/shop.asp?productcode=<%=rs("ProductCode3")%>" title="Order"><img src="http://bytes.com/images/order.gif" alt="Order" /></a>
<span>$<%=rs("UnitPrice3")%></span>
<%=rs("ProductName3")%>
</div>
Thanks for any help.
Comment