PDA

View Full Version : how can i have a nested "if statement" in a "while statement"


philhowell
02-26-03, 13:07
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

bcyde
02-26-03, 14:24
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

aZa
03-09-03, 18:54
What the problem with it?

while (A < B) {
if (A == C) {
DoSomething();
}
A++;
}