Conditional Steps

BlitzMax Forums/BlitzMax Beginners Area/Conditional Steps

I have a for - Next Loop with a large chunk of code in it. Depending on the circumstance I either want the Step value to be 1 or 3, but Step is a constant so I can't set it to a variable. I don't want to repeat all the code, so was wondering if there is a way to set the step value according to my circumstance, or whether I need to use a different type of loop.