<?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: Can I add a conditional statement in Arcade to display one of two FeatureSet script values? in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642803#M786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/adaml"&gt;adaml&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' afraid that the export to Excel does not take all my doubts away. Do you have any repeats in you survey? Also the image shows the aliases created in the hosted featurelayer and the actual field names might be different. Is it possible to provide a screenshot of the attribute table of the hosted featurelayer with data in it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2020 16:17:21 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2020-01-31T16:17:21Z</dc:date>
    <item>
      <title>Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642796#M779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I successfully used &lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade&lt;/A&gt; in two separate scripts to combine two surveys with the same feature layer points.&amp;nbsp; I am getting the results I desire separately.&amp;nbsp;&amp;nbsp; So now I want to add a third piece and that is a conditional - IF A doesn't exist then return B else return A.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I have some code and it is trying to return the entire feature class and I can't seem to pull just one field from the feature class.&amp;nbsp;&amp;nbsp; (see Script 3)&amp;nbsp; NOTE: I am relatively new to Arcade so I may be going about this all wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the two scripts that are pulling the info I want:&lt;/P&gt;&lt;P&gt;Script 1: var intersectLayer =Intersects(FeatureSetByName($map,"BowersTransactions"), $feature)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (var f in intersectLayer){&lt;BR /&gt;return f.feno2&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Script 2: var intersectLayer =Intersects(FeatureSetByName($map,"BowersInspections"), $feature)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (var f in intersectLayer){&lt;BR /&gt;return f.extinguisherno&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script 3: var inspfe =Intersects(FeatureSetByName($map,"BowersInspections"), $feature)&lt;BR /&gt;var transfe =Intersects(FeatureSetByName($map,"BowersTransactions"), $feature)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (isEmpty(transfe))&lt;BR /&gt;{return inspfe;}&lt;BR /&gt;else {return transfe;}&lt;/P&gt;&lt;P&gt;Script 3 doesn't error out it tries to display all 20 or so fields.&amp;nbsp; So it won't allow me to add it to a popup since it is too much information. &amp;nbsp; I included the result from Script 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought briefly that FeatureSetByID might narrow this down to one field which is what i want however the little bit of reading I have done on that function seems to indicate that it uses arrays and I am just trying to pull the data from a field if it exists.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 16:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642796#M779</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-01-28T16:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642797#M780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469" target="_blank"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of comments and questions as to what you are doing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first and second expression will intersect and loop through the intersecting features and return an attribute of the first one.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Do you want to return a single result? Like the first feature in the intersect?&lt;/LI&gt;&lt;LI&gt;The third expression returns a featureset and that won't display in the pop-up. Not sure either is the IsEmpty will work in this case. I would normally use the count function to see if there are any results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below an example of what you can do, just returning one field based on what you described:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; transfe &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Intersects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"BowersTransactions"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&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="punctuation token"&gt;;&lt;/SPAN&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;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;transfe&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;// no BowersTransactions&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; inspfe &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Intersects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"BowersInspections"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&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="punctuation token"&gt;;&lt;/SPAN&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;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inspfe&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;// BowersInspections either&lt;/SPAN&gt;
        result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"No results found"&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="comment token"&gt;// just BowersInspections&lt;/SPAN&gt;
        result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inspfe&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extinguisherno&lt;SPAN class="punctuation token"&gt;;&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="comment token"&gt;// BowersTransactions found, don't check BowersInspections&lt;/SPAN&gt;
    result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;transfe&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feno2&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; result&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;/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>Sun, 12 Dec 2021 03:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642797#M780</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T03:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642798#M781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;Thanks for your help....I tested this with a technician and it is close to what we are looking for but now I think we have to adjust for the latest transaction (based on a date field).&amp;nbsp;&amp;nbsp; So I will have to look at this document &lt;A href="https://community.esri.com/thread/243270"&gt;How to get attribute with last date modified from related table using Arcade&lt;/A&gt; perhaps as a guide?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably not this simple however can I create another variable (using some of the above code) that would be based on the Count being greater than 0?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642798#M781</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-01-30T15:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642799#M782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/adaml"&gt;adaml&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link you mentioned is a good start to get the most recent record from a related table. You mention that your requirement is more complex. If you can share more details, maybe I can give some more tips on how to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 16:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642799#M782</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-30T16:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642800#M783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;Let me clarify - I need the last transaction extinguisher number instead of the intersect (it seems to be pulling up the first one) that is really the only change to what I am trying to do.&amp;nbsp;&amp;nbsp; If there isn't a transaction extinguisher number it should defer to the inspection extinguisher number.&amp;nbsp;&amp;nbsp; So, it is close to what I need.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the article i posted wouldn't be applicable because I am not using a related table. Correct? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 16:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642800#M783</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-01-30T16:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642801#M784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469" target="_blank"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the clarification, although I still have a couple of questions. But first&amp;nbsp;a note on the expression&amp;nbsp;from the link you shared:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; relatedrecords &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;OrderBy&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FeatureSetByRelationshipName&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;"RelData"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"DateModified DES"&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;var&lt;/SPAN&gt; cnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;relatedrecords&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; relatedinfo &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&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;var&lt;/SPAN&gt; info &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;relatedrecords&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    relatedinfo &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; info&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ProjectPhase &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" ("&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToLocal&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;info&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DateModified&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MM/DD/Y"&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;")"&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; relatedinfo&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that on line 1 the data is sorted with the "OrderBy". As parameter "DateModified DES" is provided so it will order de records on the field DateModified in descending order. When you take the "First" (see line 6) it will take the most recent record according to the information stored in&amp;nbsp;&lt;SPAN&gt;DateModified.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In case there are no related records you could include an else statement on line 8. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You &lt;/SPAN&gt;&lt;SPAN&gt;mention that you are not using a related table.&amp;nbsp;Do you have multi temporal data in the transaction table?&amp;nbsp;If so, you should&amp;nbsp;probably filter the layer&amp;nbsp;first before sorting the data. Could you show the attribute table to see how it is structured?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642801#M784</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T03:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642802#M785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;I did a quick data export to Excel from the Survey123 Transaction Survey - so I have provided a screenshot of the fields and highlighted the date fields that I could use. I have also already filtered the transactions on 2020 - these are annual inspections however if there is any human error and they have to submit multiple transactions I would like the last extinguisher number to be used in the pop up based on the latest date.&amp;nbsp; Hope that clarifies everything.&amp;nbsp; &amp;nbsp;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/479998_screen2.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 14:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642802#M785</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-01-31T14:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642803#M786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/adaml"&gt;adaml&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' afraid that the export to Excel does not take all my doubts away. Do you have any repeats in you survey? Also the image shows the aliases created in the hosted featurelayer and the actual field names might be different. Is it possible to provide a screenshot of the attribute table of the hosted featurelayer with data in it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642803#M786</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-31T16:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642804#M787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;It is tough to get a screenshot with the data only because there are so many fields - I have Notes being pulled into the Survey.&amp;nbsp; I have included a screenshot with the actual field names.&amp;nbsp; I also included a screenshot with the data containing the one date field that I created for this survey.&amp;nbsp;&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/480047_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/480048_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642804#M787</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-01-31T16:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642805#M788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing. So your date field is called "adjdate", but what identifies the group of data you want to extract the latest from. Is that the Location ID (but in your screenshot that field appears to be empty)?&amp;nbsp;I am assuming you have one layer and for a certain&amp;nbsp;attribute of a feature you want to access the layer and all features that share that value and determine the latest date in the adjdate field and when found show a certain attribute.&amp;nbsp;Is this the case. Sorry for all these questions, but based on two records it's kinda hard to know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2020 02:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642805#M788</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-02-01T02:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642806#M789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469" target="_blank"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give you an idea of what the expression would look like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; group_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"NameOfGroupField"&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;var&lt;/SPAN&gt; sql &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NameOfGroupField = '"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; group_id &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; records &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;OrderBy&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Filter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sql&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"adjdate DES"&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;var&lt;/SPAN&gt; cnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;records&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// or fill with info when there is no data&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&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;var&lt;/SPAN&gt; info &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;records&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; info&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NameOfFieldWithInfoToShow&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; result&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;/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;&lt;/P&gt;&lt;P&gt;The if statement&amp;nbsp;is redundant because in the same layer you will always have at least 1 result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642806#M789</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T03:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642807#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;Can I use some of the 'hidden' fields that are&amp;nbsp;inherent&amp;nbsp;&amp;nbsp;with Survey123 for instance EditDate, and ObjectID or do I have to rely on the fields that I defined for the survey?&amp;nbsp; &amp;nbsp;Also, I have a filter on Location ID so that only those that pertain to the building in question are shown.&amp;nbsp; So, Location ID would have to show up based on the filter if that can still be used as the group identification?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 16:32:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642807#M790</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-02-03T16:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642808#M791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every field that is exposed in the layer should be available for use in the Arcade expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the LocationID for filtering the data. I was just wondering&amp;nbsp;if that was the field, since in the example records you showed the field is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 06:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642808#M791</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-02-04T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642809#M792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;The 'group identification' would be LocationID.&amp;nbsp;&amp;nbsp;&amp;nbsp; The screenshot that I sent you was my mistake.&amp;nbsp;&amp;nbsp; The LocationID wouldn't be blank on my map ever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below is VERY close to what I need:&amp;nbsp; (the only problem is if I submit another Transaction for that locationID then it is pulling the first one (that would be the 'first' piece of code correct?)&amp;nbsp;&amp;nbsp; IF I manually change the filter to an updated date range for the BowersTransactions featureset then this code does bring up the correct FE#)&amp;nbsp;&amp;nbsp; So, I need to figure out how to bring up the last result in the array, instead of the first.......am I understanding that correctly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var result = "";&lt;BR /&gt;var transfe =Intersects(FeatureSetByName($map,"BowersTransactions"), $feature);&lt;BR /&gt;if (Count(transfe)==0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // no BowersTransactions&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var inspfe =Intersects(FeatureSetByName($map,"BowersInspections"), $feature);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Count(inspfe)==0){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // BowersInspections either&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = "No results found";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // just BowersInspections&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = First(inspfe).extinguisherno;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // BowersTransactions found, don't check BowersInspections&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = First(transfe).feno2;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return result;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 14:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642809#M792</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-02-12T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642810#M793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example I posted earlier ("on Feb 1, 2020 8:33 AM"), line 3 contains and&amp;nbsp;OrderBy specifying in this case that it will order the results using "adjdate DES" (order it on the field adjdate in descending order). If I do that and use the First, this will take the&amp;nbsp;most recent record. In case you would change it to&amp;nbsp;&lt;SPAN&gt;"adjdate ASC" and again use First, this will get the oldest record. So I think you are missing the OrderBy to assure you get the record you need to have.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 21:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642810#M793</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-02-12T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642811#M794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;Thanks again - I was looking at the post from Feb 1 and the code and your explanation make sense - I am just confused by the way I have things set up in this map so I am still trying to figure this out.&amp;nbsp; &amp;nbsp;Would I be able to get further assistance (screen share) from support or is this something that wouldn't be supported by the ESRI support call center?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 16:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642811#M794</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-02-17T16:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642812#M795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if that is part of what is called support. In&amp;nbsp;Colombia, the client would normally reach out to the sales executive or directly solution engineer to get some extra help with implementing these things.&amp;nbsp;Do you have contact with your sales executive or solution engineer? If not, you could share the map and layer to a group and invite my ArcGIS Online user&amp;nbsp;&amp;nbsp;("xbakker.spx") to that group and I could have a look if you want that and you are able to share the content with me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 18:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642812#M795</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-02-17T18:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642813#M796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;I invited you to a group called ESRI Support in our organization and gave you access to the stuff I am working on.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 14:26:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642813#M796</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-02-18T14:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642814#M797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50469"&gt;Adam Levine&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the content. I received an error on the basemap not being available. Are you using a personalized basemap in the web map? If so, can you save a copy of the web map with a standard basemap?&amp;nbsp;The error is causing the other layer(s) not to load and therefore I can't see any configurations (expressions) you may have applied to the layers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not the case, I will load the layers and&amp;nbsp;revise the&amp;nbsp;expression you have up to now and try and adapt it based on the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 14:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642814#M797</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-02-18T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add a conditional statement in Arcade to display one of two FeatureSet script values?</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642815#M798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;Give it one more shot and then I will do it without the basemap if necessary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 15:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/can-i-add-a-conditional-statement-in-arcade-to/m-p/642815#M798</guid>
      <dc:creator>AdamLevine</dc:creator>
      <dc:date>2020-02-18T15:13:48Z</dc:date>
    </item>
  </channel>
</rss>

