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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'End If' conundrum: error '800a03f6' despite 'end if'

Status
Not open for further replies.

scopkins

Technical User
Nov 21, 2002
2
US
I am a new VBScript user editing a page for a shopping cart to control access to the rest of our site based on the order subtotal. (we have a minimum and maximum order requirement)

It should simplest to control with an if...then statement. So I wrote one according to all the rules I have seen and I get error '800a03f6' Expected 'End'. It lists line 238 as the offending line which is where I have 'End If'. So I obviously have some other sytactical error that is causing this. The statement looks like this:

<%
If intSubtotal<8 Then
%>
(HTML for Navigation Set 1)
<%
If intSubtotal>80 Then
%>
(HTML for Navigation Set 2)
<%
Else
%>
(HTML for Navigation Set 3)
<%
End If
%>

I call the variable intSubtotal from an earlier function and I use it in another location shortly before this line.

Any thoughts?

Scott Hopkins
Consort Display Group
 
<%
If intSubtotal<8 Then
%>
(HTML for Navigation Set 1)
<%
ELSEIf intSubtotal>80 Then
%>
(HTML for Navigation Set 2)
<%
Else
%>
(HTML for Navigation Set 3)
<%
End If
%>
-- Just trying to help...
[wolf]<--- This is a wolf? We need a new icon.......
mikewolf@tst-us.com
 
That was exactly it. Thank you. Scott Hopkins
Consort Display Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top