<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=Iif</id>
		<title>Iif - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=Iif"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=Iif&amp;action=history"/>
		<updated>2026-05-05T22:24:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=Iif&amp;diff=76&amp;oldid=prev</id>
		<title>Freeman: Created page with &quot;===From the Scripting Manual===  ''function iif(condition: boolean; const truePart: variant; const falsePart: variant): variant;''    '''Parameter Info:'''   Condition (Boolea...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=Iif&amp;diff=76&amp;oldid=prev"/>
				<updated>2012-08-15T09:01:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===From the Scripting Manual===  &amp;#039;&amp;#039;function iif(condition: boolean; const truePart: variant; const falsePart: variant): variant;&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   Condition (Boolea...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===From the Scripting Manual===&lt;br /&gt;
 ''function iif(condition: boolean; const truePart: variant; const falsePart: variant): variant;''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  Condition (Boolean): TRUE or FALSE value.&lt;br /&gt;
  truePart (Variant): Variable which shall be returned if (Condition) is TRUE&lt;br /&gt;
  falsePart (Variant): Variable which shall be returned if (Condition) is FALSE&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  This function acts the same as a normal IF statement, however it may be used inline.&lt;br /&gt;
 &lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;var&lt;br /&gt;
MyCondition: boolean;&lt;br /&gt;
MyInt: integer;&lt;br /&gt;
begin&lt;br /&gt;
    MyInt := 5942;&lt;br /&gt;
    WriteLn('The condition is currently '+iif(MyCondition,'true','false')); //The condition is currently false&lt;br /&gt;
    MyCondition := true;&lt;br /&gt;
    WriteLn('The condition is currently '+iif(MyCondition,'true','false')); //The condition is currently true&lt;br /&gt;
    WriteLn('The condition is currently '+iif(MyInt &amp;gt; 6000,'true','false')); //The condition is currently false&lt;br /&gt;
    MyInt := 8468;&lt;br /&gt;
    WriteLn('The condition is currently '+iif(MyInt &amp;gt; 6000,'true','false')); //The condition is currently true&lt;br /&gt;
end;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
* [http://enesce.com/help/index.html?Functions/iif.html Scripting Manual page for iif]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Freeman</name></author>	</entry>

	</feed>