If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > how can i have a nested "if statement" in a "while statement"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-03, 12:07
philhowell philhowell is offline
Registered User
 
Join Date: Jan 2003
Location: UK
Posts: 27
Post how can i have a nested "if statement" in a "while statement"

how can i have a nested "if statement" in a "while statement"

where the if statment uses a variable that the while statment alternates on each line

thanx
phil
Reply With Quote
  #2 (permalink)  
Old 02-26-03, 13:24
bcyde bcyde is offline
Registered User
 
Join Date: Dec 2002
Posts: 65
Can you be more descriptive please? I'd like to help but I'm not exactly sure I understand what you're trying to do.

-b
__________________
(I'm only available at the email address provided in my profile on weekdays, if you have questions or advice, during off hours use AIM). Also any views I provide here or on my website are mine and not representative of any views of my work, family, friends and sometimes even myself.

http://www.bcyde.com
Reply With Quote
  #3 (permalink)  
Old 03-09-03, 17:54
aZa aZa is offline
Registered User
 
Join Date: Sep 2002
Location: Kyiv, Ukraine
Posts: 77
What the problem with it?
Code:
while (A < B) {
    if (A == C) {
        DoSomething();
    }
    A++;
}
__________________
Yours faithfully,
Yaroslav Zaremba
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On