<?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>check if element is 0 in an array</title><link>https://community.appian.com/discussions/f/rules/23634/check-if-element-is-0-in-an-array</link><description>Hi there, 
 I know I can use any function to check any element is null in an array like this: 
 any(fn!isnull, {0, null, 30}). 
 
 how to use any function to check if any element is 0? 
 Thank you. 
 Lin</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: check if element is 0 in an array</title><link>https://community.appian.com/thread/90664?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 06:06:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8f67a4b-057c-4f64-baa3-59c4f40309b1</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;You can you the contains() to just get true and false. You can also use whereContains to get the index of the element that is 0.&amp;nbsp;&lt;br /&gt;There are many more methods to do this but really depends on your use case here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: check if element is 0 in an array</title><link>https://community.appian.com/thread/90646?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 18:56:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b0c9844-ea03-420c-9a4c-fcf2fa3ee71a</guid><dc:creator>linp0001</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: check if element is 0 in an array</title><link>https://community.appian.com/thread/90645?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 18:50:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ef00a19-edec-46ff-b3c5-406e4ef936eb</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi Lin,&lt;/p&gt;
&lt;p&gt;You can try something like:&lt;/p&gt;
&lt;p&gt;or({0,null, 30}=0)&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;contains({0,null, 30},0)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>