<?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>expression rule</title><link>https://community.appian.com/discussions/f/rules/30546/expression-rule</link><description>I have an expression rule which returns data for some ID&amp;#39;s and for some it returns 0 items. Based on this rule, I need to display a message to the user. If it returns 0 items, then &amp;quot;in progress&amp;quot;. If not, the usual data. 
 How to check if the rule returns</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: expression rule</title><link>https://community.appian.com/thread/121387?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 07:23:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a60df410-d20e-4f9e-9ca3-d528f2c96d70</guid><dc:creator>vikashk7323</dc:creator><description>&lt;p&gt;Hi, for that once have checked for null condition then after that you can&amp;nbsp;add in your code that&amp;nbsp;for if ri!inputNum=0, true, false. In this way you can check for 0 as well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule</title><link>https://community.appian.com/thread/121372?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 06:06:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9179b929-99de-44d2-b814-33d74621905e</guid><dc:creator>Anna P</dc:creator><description>&lt;p&gt;try with this code,&lt;/p&gt;
&lt;p&gt;create a common rule to check isnull or not and use that rule,&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!keys:getkeysfromdictionary(ri!data),&lt;br /&gt; local!isAllEmpty: a!forEach(&lt;br /&gt; items: local!keys,&lt;br /&gt; expression: a!isNullOrEmpty(index(ri!data,fv!item,null))&lt;br /&gt; ),&lt;br /&gt; not(contains(&lt;br /&gt; local!isAllEmpty,&lt;br /&gt; false()))&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule</title><link>https://community.appian.com/thread/121371?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 05:39:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27233c8c-2ae6-4471-b429-9664b20a9198</guid><dc:creator>taruns294526</dc:creator><description>&lt;p&gt;Hi &lt;a class="internal-link view-user-profile" href="/members/hema.mathivathanan"&gt;hema.mathivathanan&lt;/a&gt;&amp;nbsp;, Can you please share your written code. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: expression rule</title><link>https://community.appian.com/thread/121359?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 14:17:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef570a96-4580-4d96-a3e2-5453310cf752</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;post code snippet&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1699280226196v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>