|
99bird -> If then Else help (11/17/2005 16:29:25)
|
I am trying to list a regular price (Price) and in some cases a sale price (spprice) for a item. If a sale price (spprice) is present I want to be able to show the regular price (Price) with a line through it (a stikethrough) and the sale price. And if there is not a sale price (spprice), show just the regular price(Price). So far I have been able to get it to work using the If, Then, Else statement listed below with exception that when there is not a sale price the regular price still has a strikethrough it in all cases. I think I have explained correctly. Any help will be greatly appreciated. Thanks for all your help in advance. <% If (FP_FieldVal(fp_rs,"spprice")) > "" then %> <font face="Verdana" size="2" color="#000000"> <strike><%=FP_FieldVal(fp_rs,"Price")%></strike> <font face="Verdana" size="2" color="#FF0000"><%=FP_FieldVal(fp_rs,"spprice")%> <%Else%> <%=FP_FieldVal(fp_rs,"Price")%> <% end IF %>
|
|
|
|