<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>if nested</title><link>https://community.appian.com/discussions/f/user-interface/11239/if-nested</link><description>Hi, always also beginner on Appian ;-) I wish to make &amp;#39;if&amp;#39; nested:

 if(local!isReadOnly, local!date, if(isnull(local!date), now(), local!date)), 

But that does not work. Can you help me ?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: if nested</title><link>https://community.appian.com/thread/49642?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 15:18:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e671a29-ad18-4f58-a9c1-60f3603be031</guid><dc:creator>harrisont606</dc:creator><description>I&amp;#39;m not sure you should need that. I just tested your expression out here and it isn&amp;#39;t throwing an error:&lt;br /&gt;
&lt;br /&gt;
 load(&lt;br /&gt;
 &lt;br /&gt;
 local!isReadOnly: false(),&lt;br /&gt;
 local!date : null,&lt;br /&gt;
 &lt;br /&gt;
 if(local!isReadOnly, local!date, if(isnull(local!date), now(), local!date))&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49638?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 13:03:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ff66213-c34d-4772-9836-6060341aed68</guid><dc:creator>annap</dc:creator><description>This  will help in your case,&lt;br /&gt;
 if(&lt;br /&gt;
    local!isReadOnly,&lt;br /&gt;
    if(&lt;br /&gt;
      isnull(&lt;br /&gt;
        local!date&lt;br /&gt;
      ),&lt;br /&gt;
      now(),&lt;br /&gt;
      local!date&lt;br /&gt;
    ),&lt;br /&gt;
    now()&lt;br /&gt;
  )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49406?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 15:03:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f23c2f5-d05c-40be-822e-e7a20cb0401a</guid><dc:creator>codys</dc:creator><description>Please share the broader code. It also helps unit test the evaluation of each of the inputs (local!isReadOnly, local!date) so we can help troubleshoot.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49400?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 14:39:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e22f2de-7028-40b3-8086-5dd0628ae378</guid><dc:creator>Colton Beck</dc:creator><description>&lt;p&gt;Keep in mind that Appian now has &lt;a href="https://docs.appian.com/suite/help/17.3/Create_a_Decision.html"&gt;Decision Objects&lt;/a&gt;, which can help codify complex conditional logic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49398?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 13:00:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37f8485b-d53d-4eb2-b536-82e14243e248</guid><dc:creator>lindab0001</dc:creator><description>Thanks, I will try the function or().&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49397?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 12:52:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1eb5206-5454-47e7-9226-8b485e15bc40</guid><dc:creator>sergeiz</dc:creator><description>It looks working.&lt;br /&gt;
&lt;br /&gt;
You can also use one or() for two conditions instead of nested if.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49394?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 11:52:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:369e1474-fb66-4ebb-af14-4485d0702164</guid><dc:creator>Jamal Case</dc:creator><description>what&amp;#39;s the error you&amp;#39;re getting or the output your looking for? What&amp;#39;s not working?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49393?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 11:07:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce149c23-0bec-4f23-8d1c-e7afb408eae6</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>what is the issue you are getting?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49392?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 10:55:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc914d55-9b75-4e0b-a13c-00e67979d95b</guid><dc:creator>lindab0001</dc:creator><description>it doesn&amp;#39;t work. &lt;br /&gt;
&lt;br /&gt;
 local!IsReadOnly is a boolean.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: if nested</title><link>https://community.appian.com/thread/49391?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 10:51:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c19f0bb1-59a3-4ee8-b7a8-6df466deeecd</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>&lt;p&gt;Not sure the exact issue&lt;/p&gt;
&lt;p&gt;may be the issue occur because of local!IsReadOnly&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;try this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      if(
		  or(local!isReadOnly), 
		    local!date, 
			if(
			 isnull(local!date), 
			 now(), 
			 local!date
		    )
	    ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>