<?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 Expression with &amp;amp;&amp;amp; in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229688#M6976</link>
    <description>&lt;P&gt;Oops, one other error. The function is "IIF" not "IFF"&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 21:45:52 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-11-08T21:45:52Z</dc:date>
    <item>
      <title>Arcade Expression with &amp;&amp;</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229683#M6973</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am writing a very simple Arcade expression, but I am stuck. Basically, if the camp close date is empty and the post date is greater than 2 days, I want the background color to turn red.&amp;nbsp; I am doing this in the dashboard list.&lt;/P&gt;&lt;P&gt;I get the error unexpected token on the return. If I delete it, I get it on the textColor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;__________________________________________________________________&lt;/P&gt;&lt;P&gt;var currentdate = now()&lt;BR /&gt;var postdate = Date($datapoint.firstpostda1);&lt;BR /&gt;var twodayslater = DateAdd(postdate, 2, 'days');&lt;/P&gt;&lt;P&gt;var pastduecolor = IFF((IsEmpty($datapoint.campclosedate)&amp;amp;&amp;amp;(currentdate &amp;gt; twodayslater), "#BE2528", "");&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;textColor: '',&lt;BR /&gt;backgroundColor: pastduecolor,&lt;BR /&gt;separatorColor: '',&lt;BR /&gt;selectionColor: '',&lt;BR /&gt;selectionTextColor: '',&lt;BR /&gt;attributes: {&lt;BR /&gt;attribute1: pastduecolor&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 21:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229683#M6973</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-08T21:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression with &amp;&amp;</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229684#M6974</link>
      <description>&lt;P&gt;You appear to have an extra "(" in your IIF&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var pastduecolor = IFF(IsEmpty($datapoint.campclosedate)&amp;amp;&amp;amp;(currentdate &amp;gt; twodayslater), "#BE2528", "");&lt;/LI-CODE&gt;&lt;P&gt;statement&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 21:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229684#M6974</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-08T21:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression with &amp;&amp;</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229686#M6975</link>
      <description>&lt;P&gt;Thank you. I deleted the "(" but I still get same errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 21:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229686#M6975</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-08T21:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression with &amp;&amp;</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229688#M6976</link>
      <description>&lt;P&gt;Oops, one other error. The function is "IIF" not "IFF"&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 21:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-with-amp-amp/m-p/1229688#M6976</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-08T21:45:52Z</dc:date>
    </item>
  </channel>
</rss>

