question about a loop and for-to

BlitzMax Forums/BlitzMax Beginners Area/question about a loop and for-to

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.

Not sure what you are asking so what are you expecting to see?
J=4 so inner loop is satisfied, K=3 so we exit #lable1 (the for k=1 to 4 loop).
What we see is...
K=1 J=1 then 2 then 3 then 4
K=2 J=1 then 2 then 3 then 4
K=3 J=1 then hits the if k=3 exit label1 statement.