<?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: Replace a number with a string in an Arcade Expression in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748514#M36795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plus the &lt;A href="https://developers.arcgis.com/arcade/function-reference/"&gt;&lt;STRONG&gt;functional reference&lt;/STRONG&gt;&lt;/A&gt; is a useful link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2017 10:39:20 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-12-21T10:39:20Z</dc:date>
    <item>
      <title>Replace a number with a string in an Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748512#M36793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to see in my pop up e.g. "N/A" for all 0 values in a numeric field trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var salinity = $feature.d_sal_max;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;IIF(salinity == 0,'N/A',salinity);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This leaves all 0 values empty (instead of showing "N/A") in the pop up and returns the actual value for all other values. Putting ' ' around the 0 doesn't make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var salinity = $feature.d_sal_max;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Replace(salinity, 0, 'N/A');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replaces all 0 with "N/A", meaning "0.111" will appear as "N/A.111".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Annina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748512#M36793</guid>
      <dc:creator>AnninaHirschi_Wyss1</dc:creator>
      <dc:date>2017-12-21T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a number with a string in an Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748513#M36794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Annina,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIf(&lt;SPAN style="background-color: #ffffff;"&gt;$feature.d_sal_max&lt;/SPAN&gt; == 0, "N/A", &lt;SPAN style="background-color: #ffffff;"&gt;$feature.d_sal_max&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information here:&amp;nbsp;&lt;A class="link-titled" href="https://blogs.esri.com/esri/arcgis/2017/06/28/whats-new-in-arcade-june-2017/" title="https://blogs.esri.com/esri/arcgis/2017/06/28/whats-new-in-arcade-june-2017/"&gt;What’s New in Arcade (June 2017) | ArcGIS Blog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carmel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748513#M36794</guid>
      <dc:creator>CarmelConnolly</dc:creator>
      <dc:date>2017-12-21T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a number with a string in an Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748514#M36795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plus the &lt;A href="https://developers.arcgis.com/arcade/function-reference/"&gt;&lt;STRONG&gt;functional reference&lt;/STRONG&gt;&lt;/A&gt; is a useful link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748514#M36795</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-12-21T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a number with a string in an Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748515#M36796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Carmel and Dan for these immediate replies!&lt;/P&gt;&lt;P&gt;What I missed was to configure the expression as string (within the "Configure Attributes"-window). And as the values have too many decimals, I added a ROUND() to the variable.&lt;/P&gt;&lt;P&gt;Now it works like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:56:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748515#M36796</guid>
      <dc:creator>AnninaHirschi_Wyss1</dc:creator>
      <dc:date>2017-12-21T10:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a number with a string in an Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748516#M36797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings community:&lt;/P&gt;&lt;P&gt;Have a similar case. Have an excel table with a colum with numeric codes and another colum with a description, for example:&lt;/P&gt;&lt;P&gt;34.................Blue car&lt;/P&gt;&lt;P&gt;35.................Green Carpet&lt;/P&gt;&lt;P&gt;36.................Brown vaccun&lt;/P&gt;&lt;P&gt;Is there a way i could use Model Builder to automatically substitute the numeric code with the descriptor once the excel table has been improted and appended to a layer's atribute table?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 22:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/replace-a-number-with-a-string-in-an-arcade/m-p/748516#M36797</guid>
      <dc:creator>YankiYankito</dc:creator>
      <dc:date>2018-08-21T22:45:26Z</dc:date>
    </item>
  </channel>
</rss>

