FOR bug

BlitzMax Forums/BlitzMax Programming/FOR bug

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Local _from=1
Local _step=GetVariableStep()
Local _index=_from
Local _to=10* Sgn _step
Repeat
  '
    If _index* Sgn _step>_to Exit

  '
  'your code here...
  '
  _index:+_step
Forever
But I admit that would slow the loop more than I had been claiming