<?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: Convert sql query to Arcade Expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1616190#M95879</link>
    <description>&lt;P&gt;The Arcade expression below might work. I think you'll need double equal signs. And the syntax for "IN" is a little different in Arcade.&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/array_functions/#includes" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/array_functions/#includes&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$feature.Field1 == 'Open' &amp;amp;&amp;amp; $feature.Field2 == 'LP' &amp;amp;&amp;amp; Includes([10, 11, 12, 13, 14], $feature.Field3)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 19:32:43 GMT</pubDate>
    <dc:creator>RyanUthoff</dc:creator>
    <dc:date>2025-05-19T19:32:43Z</dc:date>
    <item>
      <title>Convert sql query to Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1616158#M95877</link>
      <description>&lt;P&gt;I have a simple sql expression used to filter on a layer in ArcGIS Pro&lt;/P&gt;&lt;P&gt;Field1 = 'Open' AND Field2 = 'LP' AND Field3 IN (10, 11, 12, 13, 14)&lt;/P&gt;&lt;P&gt;I would like to convert it to an Arcade Expression for use in a Velocity filter.&amp;nbsp; Below is what I have come up with so far but it is returning some syntax errors.&lt;/P&gt;&lt;P&gt;$feature.Field1 = 'Open' &amp;amp;&amp;amp; $feature.Field2 = 'LP' &amp;amp;&amp;amp; $feature.Field3 IN (10, 11, 12, 13, 14)&lt;/P&gt;&lt;P&gt;Does anyone have suggestions how to convert the sql query to a arcade expression?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 19:08:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1616158#M95877</guid>
      <dc:creator>JoshLay1</dc:creator>
      <dc:date>2025-05-19T19:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1616190#M95879</link>
      <description>&lt;P&gt;The Arcade expression below might work. I think you'll need double equal signs. And the syntax for "IN" is a little different in Arcade.&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/array_functions/#includes" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/array_functions/#includes&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$feature.Field1 == 'Open' &amp;amp;&amp;amp; $feature.Field2 == 'LP' &amp;amp;&amp;amp; Includes([10, 11, 12, 13, 14], $feature.Field3)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 19:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1616190#M95879</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2025-05-19T19:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1616582#M95901</link>
      <description>&lt;P&gt;The Arcade Expression you provided works perfectly.&amp;nbsp; Thanks for taking time to solve my problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 18:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1616582#M95901</guid>
      <dc:creator>JoshLay1</dc:creator>
      <dc:date>2025-05-20T18:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1671025#M100659</link>
      <description>&lt;P&gt;Would Includes() work in a data expression with the Filter() function? I would be trying to convert the "=" to SQL IN to account for a comma separated list.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Filter(project_table, `Contractor_Assigned = '${user_company}'`)&lt;/LI-CODE&gt;&lt;P&gt;I don't have the full array list of possible values to compare to with Includes() but have been trying to use Distinct() to create it from the field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 23:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-sql-query-to-arcade-expression/m-p/1671025#M100659</guid>
      <dc:creator>Tim-Woodfield</dc:creator>
      <dc:date>2025-12-05T23:26:54Z</dc:date>
    </item>
  </channel>
</rss>

