<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Man for - Revision history</title>
		<link>http://wiki.lostsouls.org/w/index.php?title=Man_for&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.8.2</generator>
		<lastBuildDate>Sun, 10 May 2026 10:42:04 GMT</lastBuildDate>
		<item>
			<title>Laine at 17:01, 11 June 2007</title>
			<link>http://wiki.lostsouls.org/w/index.php?title=Man_for&amp;diff=3934&amp;oldid=prev</link>
			<description>&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;</description>
			<pubDate>Mon, 11 Jun 2007 17:01:42 GMT</pubDate>			<dc:creator>Laine</dc:creator>			<comments>http://wiki.lostsouls.org/Talk:Man_for</comments>		</item>
	</channel>
</rss>