If I understand you correct, you wish to skip a huge lump of code if your condition is met?
Then why not place all the code in your for-loop inside an if-condition with the negated condition, so it only runs when you want to, instead of skipping it when you don't want it to run?
Something along the line:
Alternative you could fragment your code into several methods (functions/subs) and do the various parts when ever you want it to determined by if-conditions.Code:for each i as integer = 0 to limit if not condition = true then 'do the rest here end if next i




Reply With Quote