Mini loop usage tutorial!

BlitzMax Forums/BlitzMax Tutorials/Mini loop usage tutorial!

Shagwana(Posted 2005) [#1]
Now your away programming something, and you come to some code that can be looped. Saving time in typing and making your program more efficent!. But what type of loop should you use?...

Well, heres some rule of thumb rules for you to keep in mind;

o If the code is to be executed a known number of times, use a "for next" loop
o If the code is to be executed at least once, then use a "repeat until" loop
o If the code may never be executed, then use a "while wend" loop

And that ends this mini tutorial!


Shagwana(Posted 2005) [#2]
I know this will be teaching most of you how to suck eggs, however I ment it for the super beginners out there :)


frolicy(Posted 2005) [#3]
yes, fine -
would love to see more of those super beginner tutorials, as long as a good Doc from the Dev BM is lacking

thanks