<?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_if</id>
		<title>Man if - 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_if"/>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_if&amp;action=history"/>
		<updated>2026-05-10T10:34:45Z</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_if&amp;diff=3936&amp;oldid=prev</id>
		<title>Laine at 17:08, 11 June 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_if&amp;diff=3936&amp;oldid=prev"/>
				<updated>2007-06-11T17:08:59Z</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;
        if (expr1) statement1;&lt;br /&gt;
        else if (expr2) statement2;&lt;br /&gt;
        ...&lt;br /&gt;
        else if (exprN) statementN;&lt;br /&gt;
        else statementX;&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
The if() statement implements the conditional execution of statements.&lt;br /&gt;
The expressions 'expr1' .. 'exprN' are evaluate in the order they&lt;br /&gt;
appear until one of the expressions returns non-0 ('true'). At that&lt;br /&gt;
point, the statement associated with the expression is executed, and&lt;br /&gt;
the program continues after the if() statement. If none of the&lt;br /&gt;
expressions evaluate to 'true', the statementX in the 'else'-branch&lt;br /&gt;
is executed.&lt;br /&gt;
&lt;br /&gt;
Both the 'else if' branches and the 'else' branch are optional, and&lt;br /&gt;
there can be any number of 'else if' branches - but there must be one&lt;br /&gt;
'if' branch, and the branches must be in the order given above.&lt;br /&gt;
&lt;br /&gt;
Any 'else' or 'else if' always relates to the immediately preceeding&lt;br /&gt;
'if' resp. 'else if' conditional. This means that&lt;br /&gt;
&lt;br /&gt;
          if (a)&lt;br /&gt;
          if (b) do_b;&lt;br /&gt;
          else do_c;&lt;br /&gt;
&lt;br /&gt;
is interpreted as&lt;br /&gt;
&lt;br /&gt;
          if (a) {&lt;br /&gt;
            if (b) do_b;&lt;br /&gt;
            else   do_c;&lt;br /&gt;
          }&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
[[man for|for(LPC)]], [[man foreach|foreach(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>