G
Guest
Hi everyone,
I am looping through 4 nested loops and I would like to break in the inner
most loop on certain condition and get the control on the 2 nd loop instead
of 3rd loop.
Here is briefly what I am trying to accomplish.
//Loop 1
For each lp_1 in Loop1
// Certain conditions
// Loop 2
For each lp_2 in Loop2
// Certain conditions
//Loop 3
For each lp_3 in Loop3
// Certain conditions
//Loop 4
For each lp_4 in Loop4
// certain condition
exit for loop 4 and also exit for loop 3 so that
control would move
loop2.
Please ignore the syntax. I would like to know if we can jump from inner
most loop to the intermediate (not immediate parnet loop) loop using either
VB.NET or C#.
Any ideas/ thoughts??
Thanks,
Uday
I am looping through 4 nested loops and I would like to break in the inner
most loop on certain condition and get the control on the 2 nd loop instead
of 3rd loop.
Here is briefly what I am trying to accomplish.
//Loop 1
For each lp_1 in Loop1
// Certain conditions
// Loop 2
For each lp_2 in Loop2
// Certain conditions
//Loop 3
For each lp_3 in Loop3
// Certain conditions
//Loop 4
For each lp_4 in Loop4
// certain condition
exit for loop 4 and also exit for loop 3 so that
control would move
loop2.
Please ignore the syntax. I would like to know if we can jump from inner
most loop to the intermediate (not immediate parnet loop) loop using either
VB.NET or C#.
Any ideas/ thoughts??
Thanks,
Uday