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
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