Advertisement

04.27.2005 at 09:48AM PDT, ID: 21404599
[x]
Attachment Details

When is End If not necessary?

Asked by net_susan in Active Server Pages (ASP)

Tags: end, necessary, code

I have the following code that works without the end if statements. Why does it work without it, and should I have it in anyway? It's in the middle of a different loop.

If rstemp("SomeNumber")="1" then Response.write "Some Message 1"
If rstemp("SomeNumber")="2" then Response.write "Some Message 2"
If rstemp("SomeNumber")="3" then Response.write "Some Message 3"
If rstemp("SomeNumber")="4" then Response.write "Some Message 3"
If rstemp("SomeNumber")="5" then Response.write "Some Message 5"Start Free Trial
[+][-]04.27.2005 at 09:50AM PDT, ID: 13878183

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: end, necessary, code
Sign Up Now!
Solution Provided By: leew
Participating Experts: 4
Solution Grade: A
 
 
[+][-]04.27.2005 at 09:51AM PDT, ID: 13878193

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.27.2005 at 10:48AM PDT, ID: 13878671

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.27.2005 at 03:05PM PDT, ID: 13881147

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.27.2005 at 03:07PM PDT, ID: 13881165

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.27.2005 at 09:47PM PDT, ID: 13882889

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.28.2005 at 06:17AM PDT, ID: 13885232

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.03.2005 at 07:44AM PDT, ID: 13918361

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.03.2005 at 07:49AM PDT, ID: 13918408

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32