<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=UsingIIF</id>
	<title>UsingIIF - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=UsingIIF"/>
	<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=UsingIIF&amp;action=history"/>
	<updated>2026-04-03T23:02:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=UsingIIF&amp;diff=265&amp;oldid=prev</id>
		<title>Smtxwiki: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=UsingIIF&amp;diff=265&amp;oldid=prev"/>
		<updated>2020-05-25T20:44:31Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:44, 25 May 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=UsingIIF&amp;diff=264&amp;oldid=prev</id>
		<title>Smtxwiki at 12:39, 18 September 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=UsingIIF&amp;diff=264&amp;oldid=prev"/>
		<updated>2017-09-18T12:39:45Z</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;This is an example on how to use the IIF function in the form builder or within a workflow variable. The IIF function is defined like this:&lt;br /&gt;
  IIF (When arg1 true then return arg2, else return arg3)&lt;br /&gt;
&lt;br /&gt;
In the example below, we want to validate if a value equals a certain string, when that is the case, I want to return the value &amp;#039;Yes&amp;#039;, otherwise &amp;#039;No&amp;#039;&lt;br /&gt;
 IIF (&amp;#039;#REPLACE-FORMFIELD-ValueToCheck#&amp;#039; = &amp;#039;CheckedValue&amp;#039;, &amp;#039;Yes&amp;#039;, &amp;#039;No&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
Please note the quotes around the text strings, but also around the internal label reference fields.&lt;br /&gt;
&lt;br /&gt;
Another example : you want to check if a number (GETALa) is higher than 10&lt;br /&gt;
&lt;br /&gt;
  IIF (&amp;#039;#REPLACE-FORMFIELD-playfieldform||GETALa||#&amp;#039; != &amp;#039;&amp;#039; &amp;amp;&amp;amp; TONUMBER(&amp;#039;#REPLACE-FORMFIELD-playfieldform||GETALa||#&amp;#039;) &amp;gt; 10, &amp;#039;Yes&amp;#039;, &amp;#039;No&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
sidenote: field GETALa was a text field, so we need to use TONUMBER to make it a number. To avoid errors when the field is empty, we added the first part, that checks if it is different from empty.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next example shows a more complex usage of the IIF function, in combination with other functions. We are now checking if a certain string exists within a given form answer. If it exists, we return &amp;#039;Value1&amp;#039; if not, we check for another value and when that is found &amp;#039;Value2&amp;#039; is return, otherwise &amp;#039;NoValue&amp;#039; is returned.&lt;br /&gt;
 IIF(INDEXOF(&amp;#039;#REPLACE-FORMFIELD-ValueToCheck#&amp;#039;,&amp;#039;Value1Check&amp;#039;) &amp;gt;= 0, &amp;#039;Value1&amp;#039;, IIF(INDEXOF(&amp;#039;#REPLACE-FORMFIELD-ValueToCheck#&amp;#039;,&amp;#039;Value2Check&amp;#039;) &amp;gt;= 0, &amp;#039;Value2&amp;#039;, &amp;#039;NoValue&amp;#039;))&lt;br /&gt;
&lt;br /&gt;
If you want to know if a number is between 10k and 100k&lt;br /&gt;
  IIF (ToNumber(&amp;#039;#REPLACE-FORMFIELD-DANew||PrixTotal||#&amp;#039;) &amp;lt;= 10000, &amp;#039;below10k&amp;#039;, IIF (ToNumber(&amp;#039;#REPLACE-FORMFIELD-DANew||PrixTotal||#&amp;#039;) &amp;gt; 100000, &amp;#039;above 100k&amp;#039;, &amp;#039;between 10k and 100k&amp;#039;))&lt;/div&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
</feed>