I have a quick question regarding Loops in Loops using Do Until. Will the first loop run the second loop if the criteria for the second one was fulfilled?
For Example:
Dim X
Dim Y
X = 0
Y = 0
' Loop 1
Do Until X = 20
' Loop 2
Do Until Y = 5
Y = Y + 1
Loop
X = X + 1
Loop
So, loop 1 should loop 20 times and every time it loops it should run the second loop that loops 5 * 20 times. It doesn't seem to work. The second loop only seem to run 1 time and be ignored the rest of the time.
How to loop a loop in VBScript? Didn't help me to much.
Y = 0to reset the inner loop on each iteration of the outer loop.z = 0the second loop won't be entered after the first turn." which is exactly the issue here except your variable isy = 0notz = 0but same applies.For LoopOrDo While Loopin the internet.