Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Location
    UK
    Posts
    27

    Post Unanswered: 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

  2. #2
    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

  3. #3
    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

Posting Permissions

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