Loop

From Mario Fan Games Galaxy Wiki
Revision as of 01:49, 30 March 2010 by OniLink10 (talk | contribs) (Filled out the basics. Anyone want to expand?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A loop in programming is a set of code that is run repeatedly, either until a condition has been met(like the program ending) or it has been run a certain number of times. In C-like languages, such as C, C++, and GML, it is written as either a for loop(with an initializer, condition, and increment, usually for running a loop a certain number of times), or a while loop(i.e. while a condition is not true, do the loop).