<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.lostsouls.org/w/index.php?action=history&amp;feed=atom&amp;title=Man_for</id>
		<title>Man for - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.lostsouls.org/w/index.php?action=history&amp;feed=atom&amp;title=Man_for"/>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_for&amp;action=history"/>
		<updated>2026-05-10T10:42:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.8.2</generator>

	<entry>
		<id>http://wiki.lostsouls.org/w/index.php?title=Man_for&amp;diff=3934&amp;oldid=prev</id>
		<title>Laine at 17:01, 11 June 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_for&amp;diff=3934&amp;oldid=prev"/>
				<updated>2007-06-11T17:01:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Synopsis==&lt;br /&gt;
&lt;br /&gt;
for(init; expr2; expr3) statement;&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Execute &amp;lt;init&amp;gt; once. Then, while &amp;lt;expr2&amp;gt; returns a non-zero&lt;br /&gt;
value, execute &amp;lt;statement&amp;gt;. Every time &amp;lt;statement&amp;gt; has been&lt;br /&gt;
executed, or a 'continue' statement has been executed, execute&lt;br /&gt;
&amp;lt;expr3&amp;gt; before next loop.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;init&amp;gt; is usually a series of one or more expressions (remember&lt;br /&gt;
that assignments are expressions, too), separated by commas.&lt;br /&gt;
Additionally it is also allowed to define new local variables&lt;br /&gt;
here and assign them an initial value. The scope of such variables&lt;br /&gt;
is the whole for statement.&lt;br /&gt;
&lt;br /&gt;
Examples for legal &amp;lt;init&amp;gt; expressions are:&lt;br /&gt;
&lt;br /&gt;
           for (i = 0; ...&lt;br /&gt;
           for (i = 0, j = 0; ...&lt;br /&gt;
           for (i = 0, int j = i; ...&lt;br /&gt;
           for (int j = 4; ...&lt;br /&gt;
&lt;br /&gt;
Illegal &amp;lt;init&amp;gt; expressions are:&lt;br /&gt;
&lt;br /&gt;
           for (int i; ...      : no value assigned&lt;br /&gt;
           for (int i += 4; ... : only plain assignments allowed&lt;br /&gt;
&lt;br /&gt;
A 'break' in the 'statement' will terminate the loop. A&lt;br /&gt;
'continue' will continue the execution from the beginning of&lt;br /&gt;
the loop.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
    &lt;br /&gt;
[[man foreach|foreach(LPC)]], [[man if|if(LPC)]], [[man do while|do-while(LPC)]], [[man while|while(LPC)]], [[man switch|switch(LPC)]]&lt;/div&gt;</summary>
		<author><name>Laine</name></author>	</entry>

	</feed>