do you mean Like this ..??

<%  
        if blnGotRows then 

                ' Loop around filling the table
                For intCounter = 0 to intMaxCount
                        %>
                <option value="<%Response.Write
strRecordArray(0,intCounter)%>">
                <%Response.Write strRecordArray(0,intCounter)%>
                </option>
                <%

                Next
        end if
%>


If its a large chunk of code I'd put it in to a sub or a function.

HTH



Kuminda Chandimith
Sr. Technical Consultant
Ducont.com FZ-LLC
Tel:  + 971-4-3913000 Ext 237
Fax: +971-4-3913001
http://www.ducont.com



-----Original Message-----
From: Alex Elger [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2002 13:56
To: ActiveServerPages
Subject: The IF Statement


Does anyone know how to do an if on a large piece of asp code?
for example i need to be able to write this:

start

            <%   ' Loop around filling the table
        For intCounter = 0 to intMaxCount
  %>
            <option value="<%Response.Write strRecordArray(0,intCounter)%>">
            <%Response.Write strRecordArray(0,intCounter)%>
            </option>
            <%
Next%>


end

if the blnGotRows is True.
Thanks
Alex Elger


---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to