<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 'LIKE' function in Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/1038786#M39043</link>
    <description>&lt;P&gt;This took me a hot minute to get my head around it, but YES! This is a great solution until they get LIKE into arcade. Worked like a charm! (see what I did there??)&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 18:34:45 GMT</pubDate>
    <dc:creator>OlyPowers</dc:creator>
    <dc:date>2021-03-19T18:34:45Z</dc:date>
    <item>
      <title>'LIKE' function in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344889#M17251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a solution that replicates the 'LIKE' function in SQL statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;IIF($feature.name LIKE 'target text', "", $feature.name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the target text is found in the feature attribute then it returns nothing, if it's not present then it returns the value found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to avoid the multiple&amp;nbsp;uses of IIF and WHEN statements with a simple LIKE... is this functionality possible yet in arcade?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2018 16:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344889#M17251</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2018-12-13T16:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'LIKE' function in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344890#M17252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the Find function:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/text_functions/#find" title="https://developers.arcgis.com/arcade/function-reference/text_functions/#find" rel="nofollow noopener noreferrer" target="_blank"&gt;Text Functions | ArcGIS for Developers&lt;/A&gt;?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// IIF($feature.name LIKE 'target text', "", $feature.name)&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;IIF&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Find&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'target text'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344890#M17252</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T16:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'LIKE' function in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344891#M17253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the equivalent to Haystack LIKE 'b%'?&lt;BR /&gt;Find('b',&lt;SPAN&gt;Haystack)&amp;nbsp;&lt;/SPAN&gt;will succeed on "ab","abc","ba" and "b" whereas LIKE 'b%' is only true for&amp;nbsp;&lt;SPAN&gt;"ba" and "b".&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 03:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344891#M17253</guid>
      <dc:creator>TaylorCarnell1</dc:creator>
      <dc:date>2019-10-10T03:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: 'LIKE' function in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344892#M17254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've realised,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Find('b',&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;Haystack) == 0 will match&amp;nbsp;&lt;SPAN&gt;Haystack LIKE 'b%'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 03:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/344892#M17254</guid>
      <dc:creator>TaylorCarnell1</dc:creator>
      <dc:date>2019-10-10T03:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: 'LIKE' function in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/1038786#M39043</link>
      <description>&lt;P&gt;This took me a hot minute to get my head around it, but YES! This is a great solution until they get LIKE into arcade. Worked like a charm! (see what I did there??)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 18:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/like-function-in-arcade/m-p/1038786#M39043</guid>
      <dc:creator>OlyPowers</dc:creator>
      <dc:date>2021-03-19T18:34:45Z</dc:date>
    </item>
  </channel>
</rss>

