<?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: Domains in Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138720#M6780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed you used single quotes over the $feature,'Insta' and $Feature,'WA' vs my double quotes. Was that the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2020 16:17:27 GMT</pubDate>
    <dc:creator>NWEdisonTeam</dc:creator>
    <dc:date>2020-08-12T16:17:27Z</dc:date>
    <item>
      <title>Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138711#M6771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to parse out a conditional expression for visually displaying locations in Arcade (Arcgis Online) that contains two domains and I am either A, not getting the resultant I want, or B getting an error, depending on how I structure it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (DomainName($feature,"WA") == 8/10/2020 - 8/16/2020 &amp;amp;&amp;amp; DomainName($feature,"InSta") == 'To Be Installed') {Return 'Needs to Be Installed'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This version returns null values. Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 19:45:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138711#M6771</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-11T19:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138712#M6772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the domain values for "WA" strings? If so, your syntax is incorrect&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DomainName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"WA"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"8/10/2020 - 8/16/2020"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DomainName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"InSta"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'To Be Installed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    Return &lt;SPAN class="string token"&gt;'Needs to Be Installed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Otherwise, what are the values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:41:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138712#M6772</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T07:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138713#M6773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The domains are indeed strings. It is not a Date type column. Also the " " around "WA" should be ' '. Apologies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 20:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138713#M6773</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-11T20:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138714#M6774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does adding the quotes around the date range help or are you still getting unexpected results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138714#M6774</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-08-12T14:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138715#M6775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Taking the quotes away on the date range makes it turn blue, which I am assuming is the code recognizing the Domain code/name. Removing the quotes from the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;'To Be Installed' seems to nullify the expression and create an error. Otherwise, the expression will return no values which is wrong.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138715#M6775</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-12T14:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138716#M6776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what you're saying, the colors change if the text is a string value (red), a function or number (blue), or part of the Javascript syntax (black). It isn't doing any compiling to recognize domain values. Are you able to supply screen shots of your expression and the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, here is one of the scripts I have that uses fields with domains. I'm not using the DomainName function, but just working with the codes. The field "Benthic Status" has three possible codes. If I click on the pencil icon for that field, it shows the codes and their names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/503116_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/503174_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 15:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138716#M6776</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-08-12T15:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138717#M6777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in my code it is not recognizing that&amp;nbsp; 'To Be Installed' Is a Code&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/503187_3.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 15:44:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138717#M6777</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-12T15:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138718#M6778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to enclose any string values in quotes. You could either use "if/else" or the &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#iif" rel="nofollow noopener noreferrer" target="_blank"&gt;IIF function&lt;/A&gt; to also return values that don't meet your criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DomainName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'WA'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'8/10/2020 - 8/16/2020'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DomainName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'InSta'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'To Be Installed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Needs to Be Installed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Didn't meet criteria"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

or

&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;DomainName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'WA'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'8/10/2020 - 8/16/2020'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DomainName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'InSta'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'To Be Installed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Needs to Be Installed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Didn't meet criteria"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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 07:41:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138718#M6778</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T07:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138719#M6779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That got it. Thanks you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 16:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138719#M6779</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-12T16:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138720#M6780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed you used single quotes over the $feature,'Insta' and $Feature,'WA' vs my double quotes. Was that the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 16:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138720#M6780</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-12T16:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138721#M6781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, they are interchangeable. Notice I had to use double quotes in the else return since the string contained a single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this works fine (from the &lt;A href="https://developers.arcgis.com/arcade/playground/"&gt;Playground&lt;/A&gt;), but you try to be consistent&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;iif($feature.LASTEDITOR == "Esri", 'Yes', "No")‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 16:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138721#M6781</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-08-12T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138722#M6782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To Continue this, I am finding that the expanded code is not yielding the corresponding results. Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (DomainName($feature,'InSta') == 'To Be Installed'){&lt;BR /&gt; if (DomainName($feature,'WA') == '8/10/2020 - 8/16/2020'){&lt;BR /&gt; return 'Priority 1 Install';&lt;BR /&gt; } else if (DomainName($feature,'WA') == '8/10/2020 - 8/16/2020'){&lt;BR /&gt; return 'Priority 2 Install';&lt;BR /&gt; } else if (DomainName($feature,'WA') == '8/24/2020 - 8/30/2020'){&lt;BR /&gt; return 'Priority 3 Install';&lt;BR /&gt; } else if (DomainName($feature,'WA') == '5/25/2020 - 5/31/2020'){&lt;BR /&gt; return 'Do Not Install'&lt;BR /&gt; } else {&lt;BR /&gt; return 'Installed';&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 14:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138722#M6782</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-14T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138723#M6783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I notice is your first two date range if statements use the same range. What are you getting and what are you expecting? It is possible to see a snapshot of the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 14:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138723#M6783</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-08-14T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138724#M6784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. That code was wrong I mis-copied so apologies&lt;/P&gt;&lt;P&gt;2. I got it to work by changing the structure and just doing a bunch of else if clauses. See the screen shots below:&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/503477_1.PNG" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/503478_2.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was overly complicating it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 15:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/138724#M6784</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2020-08-14T15:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Domains in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/1128468#M43503</link>
      <description>&lt;P&gt;I am having a similar issue. Here is my code:&lt;/P&gt;&lt;P&gt;var days = DateDiff(Now(), $feature["Inspected_Date"], "days");&lt;/P&gt;&lt;P&gt;if (days &amp;gt; 60 &amp;amp;&amp;amp; days &amp;lt; 180 &amp;amp;&amp;amp; $feature["Inspection_Status"] == 'Repair Needed') {&lt;BR /&gt;return "This was inspected between 2 and 6 months ago - Repair Needed";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (days &amp;gt; 180 &amp;amp;&amp;amp; $feature["Inspection_Status"] == 'Repair Needed') {&lt;BR /&gt;return "This was inspected more than 6 months ago - Repair Needed";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (days &amp;lt; 60 &amp;amp;&amp;amp; $feature["Inspection_Status"] == 'Repair Needed') {&lt;BR /&gt;return "This was inspected in the past 2 months - Repair Needed";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (days &amp;gt; 60 &amp;amp;&amp;amp; days &amp;lt; 180 &amp;amp;&amp;amp; $feature["Inspection_Status"] == 'Passed') {&lt;BR /&gt;return "This was inspected between 2 and 6 months ago - Passed";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (days &amp;gt; 180 &amp;amp;&amp;amp; $feature["Inspection_Status"] == 'Passed') {&lt;BR /&gt;return "This was inspected more than 6 months ago - Passed";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (days &amp;lt; 60 &amp;amp;&amp;amp; $feature["Inspection_Status"] == 'Passed') {&lt;BR /&gt;return "This was inspected in the past 2 months - Passed";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know for a fact the days variable and that logic works because that's the way our application is set up right now. We are just wanting to add that inspection status element.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 21:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/domains-in-arcade/m-p/1128468#M43503</guid>
      <dc:creator>AdamBakiera</dc:creator>
      <dc:date>2021-12-22T21:13:07Z</dc:date>
    </item>
  </channel>
</rss>

