<?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>idea Arcade needs a LIKE function in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/arcade-needs-a-like-function/idi-p/1106487</link>
    <description>&lt;P&gt;I've had several use cases while using a when() or iif() function in Arcade where it would have been really nice to have the ability to match text using LIKE in the same way that it's used in SQL. My most recent use case is that I have several point locations on a map with a field holding website URLs. My client wants all URLs with a specific domain name (let's say &lt;A href="http://www.esri.com" target="_blank"&gt;www.esri.com&lt;/A&gt;&amp;nbsp;as an example) to have different text for the hyperlink than all of the other URLs. So, I'd want to write a statement like this:&lt;/P&gt;&lt;P&gt;when($feature.URL LIKE "&lt;A href="https://www.esri.com%" target="_blank"&gt;https://www.esri.com%&lt;/A&gt;", "Go to Esri sponsored site", "Vendor Website")&lt;/P&gt;&lt;P&gt;Any website that starts with &lt;A href="https://www.esri.com" target="_blank"&gt;https://www.esri.com &lt;/A&gt;would return the text "Go to Esri sponsored site" and all other sites would return Vendor Website. I can use that custom expression for the text:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmyRoust_0-1633973291492.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24975i35D524D820937E11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmyRoust_0-1633973291492.png" alt="AmyRoust_0-1633973291492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And use the {URL} parameter for the actual link.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 17:29:05 GMT</pubDate>
    <dc:creator>AmyRoust</dc:creator>
    <dc:date>2021-10-11T17:29:05Z</dc:date>
    <item>
      <title>Arcade needs a LIKE function</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcade-needs-a-like-function/idi-p/1106487</link>
      <description>&lt;P&gt;I've had several use cases while using a when() or iif() function in Arcade where it would have been really nice to have the ability to match text using LIKE in the same way that it's used in SQL. My most recent use case is that I have several point locations on a map with a field holding website URLs. My client wants all URLs with a specific domain name (let's say &lt;A href="http://www.esri.com" target="_blank"&gt;www.esri.com&lt;/A&gt;&amp;nbsp;as an example) to have different text for the hyperlink than all of the other URLs. So, I'd want to write a statement like this:&lt;/P&gt;&lt;P&gt;when($feature.URL LIKE "&lt;A href="https://www.esri.com%" target="_blank"&gt;https://www.esri.com%&lt;/A&gt;", "Go to Esri sponsored site", "Vendor Website")&lt;/P&gt;&lt;P&gt;Any website that starts with &lt;A href="https://www.esri.com" target="_blank"&gt;https://www.esri.com &lt;/A&gt;would return the text "Go to Esri sponsored site" and all other sites would return Vendor Website. I can use that custom expression for the text:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmyRoust_0-1633973291492.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24975i35D524D820937E11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmyRoust_0-1633973291492.png" alt="AmyRoust_0-1633973291492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And use the {URL} parameter for the actual link.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcade-needs-a-like-function/idi-p/1106487</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2021-10-11T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade needs a LIKE function</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcade-needs-a-like-function/idc-p/1106495#M8393</link>
      <description>&lt;P&gt;I think Find should suit this case. Let me know if it doesn't...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IIF(Find("&lt;A href="https://www.esri.com%25/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.esri.com&lt;/A&gt;", $feature.URL) &amp;gt; -1,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Go to Esri sponsored site", "Vendor Website")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's the documentation:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#find" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/text_functions/#find&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 18:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcade-needs-a-like-function/idc-p/1106495#M8393</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2021-10-11T18:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade needs a LIKE function</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/arcade-needs-a-like-function/idc-p/1106504#M8394</link>
      <description>&lt;P&gt;Oh nice! That worked like a charm. Thank you, Kristian!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 19:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/arcade-needs-a-like-function/idc-p/1106504#M8394</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2021-10-11T19:06:19Z</dc:date>
    </item>
  </channel>
</rss>

