<?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 - creating an incremental array of non nulls in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-creating-an-incremental-array-of/m-p/714139#M31459</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/170756"&gt;Luke Haskett&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this post by&amp;nbsp;&lt;A href="https://community.esri.com/people/JPC_Planning"&gt;JPC_Planning&lt;/A&gt;&amp;nbsp; and my answer there:&amp;nbsp;&lt;A href="https://community.esri.com/thread/248592"&gt;Using Arcade to count nulls or non-nulls from an array&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2020 19:52:11 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2020-02-21T19:52:11Z</dc:date>
    <item>
      <title>Arcade Expression - creating an incremental array of non nulls</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-creating-an-incremental-array-of/m-p/714138#M31458</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;Arcade is still very new to me so forgive me if this seems like a basic error. I'm trying to use arcade to loop through the rows of a feature class and return the number of non-null fields for each row. I'm using the following code but it just produces the number of items in the array (3) for each row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var array = [$feature.Welcoming,$feature.Access,$feature.Community];&lt;BR /&gt;var total = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(var k in array){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Iif(isempty(k),total+=0,total+=1);&lt;BR /&gt;}&lt;BR /&gt;return total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate some pointers, I can't seem to crack this. So for instance, in a row where two of the variables in the 'array' were null I would expect/need it to return '1' (the number of non-nulls)... equally if one of the variables were null I would need it to return '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-creating-an-incremental-array-of/m-p/714138#M31458</guid>
      <dc:creator>LukeHaskett</dc:creator>
      <dc:date>2020-02-21T13:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression - creating an incremental array of non nulls</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-creating-an-incremental-array-of/m-p/714139#M31459</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/170756"&gt;Luke Haskett&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this post by&amp;nbsp;&lt;A href="https://community.esri.com/people/JPC_Planning"&gt;JPC_Planning&lt;/A&gt;&amp;nbsp; and my answer there:&amp;nbsp;&lt;A href="https://community.esri.com/thread/248592"&gt;Using Arcade to count nulls or non-nulls from an array&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-creating-an-incremental-array-of/m-p/714139#M31459</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-02-21T19:52:11Z</dc:date>
    </item>
  </channel>
</rss>

