Hi,
I need to do multi-conditional statements like below, but this error is
displayed :
Expected 'End'
/myFilepath, line x
else response.write(arrCorpo(sparam,sdiv)) end if
I don't understand why this 'Expected 'End'' error is called!
Here is my code:
<%
sdiv=request("div")
sparam=request("param")
snat=request("nat")
%>
<%
Function loopDatas(arrayName)
nRowCount = ubound(arrayName, 2)
For n=0 to nRowCount
response.write(arrayName(1,n)&"<BR>")
Next
End Function
%>
<%
if(sdiv=3) then
if snat="" then response.write(corpclientsmaintext)
else if (snat=1 or snat=2) then
response.write("<table
width='200'><tr><td>"&corpclientsgov&"<br>"&corpcl ientsfi&"<br>"&corpclients
lcorp&"<br>"&corpclientslfirms&"<br>"&corpclientsa firms&"<br></td><td>")
call loopDatas(arrCorpoType)
response.write("</td></tr></table>")
end if
else response.write(arrCorpo(sparam,sdiv))
end if
%>
Can someone help me?
Thanks in advance
Patrice