<?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>idea ISNUMBER function for ArcGIS Arcade in Developers Ideas</title>
    <link>https://community.esri.com/t5/developers-ideas/isnumber-function-for-arcgis-arcade/idi-p/1068471</link>
    <description>&lt;P&gt;Arcade shines brightest when it is used to overcome schema issues out of your control. Using simple tests, one is able to effectively clean/screen data for datasets that are not part of their jurisdiction/responsibility. As part of that strategy, a tool like isNumber() could be used to help screen data.&lt;/P&gt;&lt;P&gt;A specific use-case would be setting angles for cartography, if the only field available is a string, then you can write a test like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;WHEN(

ISEMPTY(thefield) == true, 0, //to test for nulls

ISNUMBER(thefield) == true, NUMBER(thefield) , \\to cast the string field

0 //default for records that consist of only text

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current alternative is below and can be unintuitive for individuals without javascript experience:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;WHEN(

ISEMPTY(thefield) == true, 0, //to test for nulls

ISNAN(NUMBER(thefield)) == false, NUMBER(thefield),

0 \\default for records that consist of only text

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ISNUMBER( value, pattern? )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Shouldn't ArcGIS Arcade have its own Ideas Community?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 16:45:40 GMT</pubDate>
    <dc:creator>feralcatcolonist_old</dc:creator>
    <dc:date>2021-06-15T16:45:40Z</dc:date>
    <item>
      <title>ISNUMBER function for ArcGIS Arcade</title>
      <link>https://community.esri.com/t5/developers-ideas/isnumber-function-for-arcgis-arcade/idi-p/1068471</link>
      <description>&lt;P&gt;Arcade shines brightest when it is used to overcome schema issues out of your control. Using simple tests, one is able to effectively clean/screen data for datasets that are not part of their jurisdiction/responsibility. As part of that strategy, a tool like isNumber() could be used to help screen data.&lt;/P&gt;&lt;P&gt;A specific use-case would be setting angles for cartography, if the only field available is a string, then you can write a test like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;WHEN(

ISEMPTY(thefield) == true, 0, //to test for nulls

ISNUMBER(thefield) == true, NUMBER(thefield) , \\to cast the string field

0 //default for records that consist of only text

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current alternative is below and can be unintuitive for individuals without javascript experience:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;WHEN(

ISEMPTY(thefield) == true, 0, //to test for nulls

ISNAN(NUMBER(thefield)) == false, NUMBER(thefield),

0 \\default for records that consist of only text

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ISNUMBER( value, pattern? )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Shouldn't ArcGIS Arcade have its own Ideas Community?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/isnumber-function-for-arcgis-arcade/idi-p/1068471</guid>
      <dc:creator>feralcatcolonist_old</dc:creator>
      <dc:date>2021-06-15T16:45:40Z</dc:date>
    </item>
  </channel>
</rss>

