<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://4dimensions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=IF_ELSEIF_END</id>
		<title>IF ELSEIF END - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://4dimensions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=IF_ELSEIF_END"/>
		<link rel="alternate" type="text/html" href="http://4dimensions.org/wiki/index.php?title=IF_ELSEIF_END&amp;action=history"/>
		<updated>2026-04-28T11:03:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>http://4dimensions.org/wiki/index.php?title=IF_ELSEIF_END&amp;diff=677&amp;oldid=prev</id>
		<title>Isibot: Bot: Automated import of articles</title>
		<link rel="alternate" type="text/html" href="http://4dimensions.org/wiki/index.php?title=IF_ELSEIF_END&amp;diff=677&amp;oldid=prev"/>
				<updated>2016-01-26T09:00:21Z</updated>
		
		<summary type="html">&lt;p&gt;Bot: Automated import of articles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''IF ELSEIF END'''&lt;br /&gt;
[[Category:Help Files]]&lt;br /&gt;
&lt;br /&gt;
IF ELSEIF END&lt;br /&gt;
&lt;br /&gt;
IF ELSEIF END&lt;br /&gt;
&lt;br /&gt;
IF ELSEIF END&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage: if (expression)&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
elseif (expression)&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
if (if %actor.vnum% == -1) &lt;br /&gt;
&lt;br /&gt;
%echo% You are a player&lt;br /&gt;
&lt;br /&gt;
else &lt;br /&gt;
&lt;br /&gt;
%echo% You are a mob.&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An 'if' must occur before the other three. If expression evaluates to true &lt;br /&gt;
&lt;br /&gt;
({cRHELP EXPRESSIONS{c0), the statements between the if statement and the next &lt;br /&gt;
&lt;br /&gt;
elseif, else, or end are executed. If it stopped at an elseif or else, it scans &lt;br /&gt;
&lt;br /&gt;
for the next end, and continues execution at that point. If the expression &lt;br /&gt;
&lt;br /&gt;
evaluated to false, it searches for the next elseif, else, or end. If it finds &lt;br /&gt;
&lt;br /&gt;
an elseif, it checks that expression. If it is true, it executes the statements &lt;br /&gt;
&lt;br /&gt;
between the elseif and the next elseif, else, or end, and then finds the end of&lt;br /&gt;
&lt;br /&gt;
the block. If it is false, it continues searching in the same pattern, until a &lt;br /&gt;
&lt;br /&gt;
true elseif is found, an else is found, or an end is found. There may be 0 or &lt;br /&gt;
&lt;br /&gt;
1 else statements and 0 or many elseif statements in the block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For anyone having trouble with the format of if/elseif/else/end blocks&lt;br /&gt;
&lt;br /&gt;
{cRTSTAT 22{c0. Relsqui made this excellent example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
***EVERY IF NEEDS AN END: 2 IF'S NEEDS 2 ENDS....***&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See Also: [[EXPRESSIONS]]  [[NESTED]]&lt;/div&gt;</summary>
		<author><name>Isibot</name></author>	</entry>

	</feed>