<?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>Search in array</title><link>https://community.appian.com/discussions/f/general/19416/search-in-array</link><description>Hi , 
 i have a requirement where i need to check values in an array ,if exists then update cdt or else create a new cdt. 
 
 Consider 
 local!A: {&amp;quot;AA&amp;quot;,&amp;quot;BB; CC&amp;quot;} 
 local!B: {&amp;quot;BB&amp;quot;,&amp;quot;AA&amp;quot;} 
 if exists update 
 not exists create 
 
 here i need to compare</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Search in array</title><link>https://community.appian.com/thread/75961?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 15:09:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41bebdce-e9eb-4ee7-9af1-ff23311b5e6e</guid><dc:creator>Timo</dc:creator><description>&lt;div class="FieldLayout---field_layout"&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class=""&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start ParagraphText---inDocInfoPanel elements---global_p"&gt;&lt;strong class="StrongText---richtext_strong"&gt;difference&lt;/strong&gt;(array1, array2)&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="FieldLayout---field_layout"&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class=""&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start ParagraphText---inDocInfoPanel elements---global_p"&gt;Returns the values in array1 and not in array2.&lt;br /&gt;&lt;br /&gt;Then append the missing ones&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search in array</title><link>https://community.appian.com/thread/75953?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 11:43:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a22955d3-347f-4278-9f3f-1acb59c50cc4</guid><dc:creator>pradeepb0001</dc:creator><description>&lt;p&gt;&lt;a href="/members/marcelp307"&gt;Marcel Paradies&lt;/a&gt; Thank you for your reply.Yes i want to&amp;nbsp;&lt;span&gt;want to check whether an element in B is contained within a string in A, as well.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search in array</title><link>https://community.appian.com/thread/75950?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 10:59:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da2808f9-316a-4eb6-b23a-8ad9ffe66c40</guid><dc:creator>Marcel Paradies</dc:creator><description>&lt;p&gt;Is that a check for equality of the element that you want to do? From your elaboration it seems like you want to check whether an element in B is contained within a string in A, as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>