Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can someone please verify this code real quickly? 2

Status
Not open for further replies.

jgarite

Programmer
Feb 26, 2008
30
US
can someone verify this code for me? it doesnt seem to be working...
Code:
<% if Mid(sKitName,4,3) = "EEE" then%><%else%> 
<% if left(sKitName,4) = "Asus" then%>Free Shipping
<%End if%> 
<%End if%>
The item titles are Asus A7K (just for example) and Asus EEE...if the model is a Asus EEE, it should not display free shipping, otherwise if it is Asus, then it should. Is this not the correct way?
 
[tt][blue]if Mid(sKitName,[!]6[/!],3)[/blue][/tt]

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
wow LoL...thanks...guess i need to go back to kindergarten & learn how to count. thanks george
 
Well... it took most of the fingers on 2 hands. Luckily I didn't need to take off my shoes. [lol]

Anyway... I'm glad I was able to help.

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
I would use InStr:
Code:
<%
If InStr(sKitName, "Asus") Then
  If Not InStr(sKitName, "EEE") Then
    Response.Write "Free Shipping"
  End If
End If
%>

Lee
 
thats another good one...thanks, that may be useful too. thanks george and lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top