All Forums >> [Scripting] >> ASP >> Expected End error....... Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I've gone through it to the best of my knowledge, I am only a beginner, all the If, Then statements are Ended and the rest of the code is copied from another page that works fine. What am I missing? If you can help thanx.
If objRS("regiment") = 1 then Response.write("Regiment1/") If objRS("regiment") = 2 then Response.write("Regiment2/") Else End If
My guess, from looking at the rest of the code, is that the second If (If objRS("regiment") = 2 then) should actually be an Elseif (Elseif objRS("regiment") = 2 then)