<?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>Result of wherecontain() changed in if()</title><link>https://community.appian.com/discussions/f/general/36797/result-of-wherecontain-changed-in-if</link><description>Weird thing happened, I have a if() function 
 if( my condition, value when true, remove(local!myList, wherecontains(cons!code, local!myList.code)) ) 
 when I take the remove() out of if(), it&amp;#39;s result is a list of 4 items, but in if(), it&amp;#39;s result is</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138813?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 06:41:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d24490f-d611-4853-9747-902e87166064</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I tried to replicate that issue, but failed. Please try to share standalone examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138812?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 06:34:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d29f611-d66e-45cf-97f4-813dc6268e46</guid><dc:creator>fxzrqjzztrmy</dc:creator><description>&lt;p&gt;These are all I can share&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138811?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 06:33:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b349910e-20b9-4b26-96c6-5ec8a6db251d</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Could you please share your code or an screenshot please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138809?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 06:29:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e7ae6f3-7734-4ff3-b10d-d36fe28c4b71</guid><dc:creator>fxzrqjzztrmy</dc:creator><description>&lt;p&gt;Value can not be present because it has business detail,&amp;nbsp; but local!dealStatusId = 3, local!refChecklists is a list of recordtype it has a field called checklistcode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138805?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 05:38:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e26ecaee-ce9d-45c3-abe0-4a91cefccea0</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;Can you provide a screenshot of the values which are present in the local variables?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138796?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 02:34:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba5d1434-81c3-4886-8b29-c29ef3269879</guid><dc:creator>fxzrqjzztrmy</dc:creator><description>&lt;p&gt;1. When wherecontains() in if(), and condition value is false&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722305920161v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722305943329v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2. When where contains() not in if()&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722305986432v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722306010338v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3. Value when true in if(), not used in this case anyway&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722306042738v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722306243046v7.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;4. Combined with remove() - expected value&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722306425528v8.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722306439701v9.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;5. When it&amp;#39;s in if(), the remove() result is not correct&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722306488258v10.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1722306612743v11.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In if() condition my colleague added a condition, see commented out lines, and it worked. But I can&amp;#39;t see why the added condition change the result because condition 1 is false anyway&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138782?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 14:58:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe3dcfa9-2290-4201-a151-dd9e0eba1ad4</guid><dc:creator>rajthakor</dc:creator><description>&lt;p&gt;can you pls provide the screenshot of the rule with value&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Result of wherecontain() changed in if()</title><link>https://community.appian.com/thread/138775?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 12:52:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3464e1e1-8028-4df6-9e65-f73ddfc55ca1</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;Can you provide more details like what are the values that are present in the variables which you mentioned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>