A question about ASP code processing

Results 1 to 2 of 2

Thread: A question about ASP code processing

  1. #1
    Join Date
    Dec 1969

    Default A question about ASP code processing

    Hi guys,<BR><BR>Just a question I have a login page which consists of a number of IF Statements, in between those If statements I have a SQL Select call. Like so...<BR><BR>&#060;%<BR>IF ....<BR>Select statement<BR>End if<BR><BR>IF ....<BR>Select statement<BR>End if<BR><BR>IF ....<BR>Select statement<BR>End if<BR><BR>%&#062;<BR><BR>What i&#039;m wondering is, does the server process all the code in between the ASP delimiters, or does its run the code until an IF statement is true and then stop running the rest of the code?<BR><BR>I&#039;m asking because i&#039;m wondering If I have to close my connection before everyday End if, or just put one close at the end of the code.<BR><BR>Thanks in advance<BR><BR>James

  2. #2
    Join Date
    Dec 1969

    Default RE: A question about ASP code processing

    It executes all IF THEN blocks which evaluate to TRUE<BR><BR>IF 1=1 THEN<BR>&#039; command A<BR>END IF<BR><BR>IF 1=2 THEN<BR>&#039; command B<BR>END IF<BR><BR>IF 2=2 THEN<BR>&#039; command C<BR>END IF<BR><BR>in this case command A *and* command C are executed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts