Message 1 of 4
iLogic - for loop ends earlier than it has to

Not applicable
04-24-2018
11:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Fellows,
Do You have any idea why this loop always ends with increment No. of m=11, instead of moving forward untill variable m=NoB in a first "while" loop?
If PlatformType = "Right" Then For m=1 To 30 While m <= NoB Try Feature.IsActive("RevolutionSrf" & m) = False Feature.IsActive("RevolutionSrf-" & m) = False Feature.IsActive("RightRevolutionSrf" & m) = True MessageBox.Show(m, "Title") Catch End Try m=m+1 End While While m > NoB And m <= 30 Try Feature.IsActive("RevolutionSrf" & m) = False Feature.IsActive("RevolutionSrf-" & m) = False Feature.IsActive("RightRevolutionSrf" & m) = False Catch End Try m=m+1 End While Next End If