<?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: Arcade When() function not working with complex And statement in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1581010#M92564</link>
    <description>&lt;P&gt;No worries, I do the same thing routinely.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 20:46:47 GMT</pubDate>
    <dc:creator>ZachBodenner</dc:creator>
    <dc:date>2025-01-31T20:46:47Z</dc:date>
    <item>
      <title>Arcade When() function not working with complex And statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1580974#M92552</link>
      <description>&lt;P&gt;I'm trying to use a custom Arcade expression in Symbology to set the color of points in a feature layer. See below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;When($feature.Device_Due_Date &amp;gt; DateOnly(), "In Compliance",$feature.Device_Due_Date &amp;lt; DateOnly() &amp;amp;&amp;amp; $feature.Device_Last_Test_Status = "fail", "Failing and Past Due",
      $feature.Device_Due_Date &amp;lt; DateOnly(), "Past Due",
      $feature.Device_Status = "Inactive")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I've narrowed the problem down to the complex AND statement on the second clause in the When statement. If I make it a simple clause without the AND it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way get the AND statement to work? I'm trying to set the color of the points based off of these logical statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a screen shot to see where I'm using the expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MPach_0-1738351895170.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124458iB7AD00A92A09EEC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MPach_0-1738351895170.png" alt="MPach_0-1738351895170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 19:32:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1580974#M92552</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2025-01-31T19:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade When() function not working with complex And statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1580980#M92554</link>
      <description>&lt;P&gt;What's the error you're getting? I think there's a chance it's because you use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$feature.Device_Last_Test_Status = "fail",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you need two equals signs:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$feature.Device_Last_Test_Status == "fail",&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 31 Jan 2025 19:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1580980#M92554</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-01-31T19:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade When() function not working with complex And statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1580992#M92558</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;. Such a silly mistake.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 20:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1580992#M92558</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2025-01-31T20:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade When() function not working with complex And statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1581010#M92564</link>
      <description>&lt;P&gt;No worries, I do the same thing routinely.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 20:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-when-function-not-working-with-complex-and/m-p/1581010#M92564</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-01-31T20:46:47Z</dc:date>
    </item>
  </channel>
</rss>

