<?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: Expression based symbology with multiple  !IsEmpty in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218901#M60700</link>
    <description>&lt;P&gt;IsEmpty returns a boolean value (true or false). ! is the symbol for "not", it reverses the boolean output. !IsEmpty(value) returns true if the value is not empty.&lt;/P&gt;&lt;P&gt;Booleans can be converted to numbers (true = 1, false = 0). Arcade can do that implicitly, without needing the explicit instruction to do so.&lt;/P&gt;&lt;P&gt;So this code declares a variable c and sets its value to 0. Then it goes through the array of values. For each of those values, it adds the numeric equivalent (0 or 1) of "This value is not empty" to c. So if the value is empty, it adds 0, if the value is not empty, it adds 1. It basically counts the non-empty elements in the array.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 07:46:25 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-10-05T07:46:25Z</dc:date>
    <item>
      <title>Expression based symbology with multiple  !IsEmpty</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218549#M60650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read lots of forum questions and tips but don't know how to solve my case.&lt;/P&gt;&lt;P&gt;I am using the expression generator to create 2 symbologies. I have a table with 5 fields/&lt;/P&gt;&lt;P&gt;&lt;U&gt;I would like to define 2 groups:&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Group A: features with 2 (or more) fields non empty&lt;/LI&gt;&lt;LI&gt;Goup B: else (features with only one non empty field)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218549#M60650</guid>
      <dc:creator>arthurV</dc:creator>
      <dc:date>2022-10-04T09:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based symbology with multiple  !IsEmpty</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218562#M60651</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1664876667687.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52791i06997970BB4F96AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1664876667687.png" alt="JohannesLindner_0-1664876667687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// get an array of the $feature's values
var values = [$feature.GewässerID, $feature.BescheidID, $feature.EinzugsgebietID, $feature.KontaktID, $feature.ASVNummer]
// get the count of non-empty values
var c = 0
for(var i in values) {
    c += !IsEmpty(values[i])
}
// return true if 2 or more values are non-empty
return c &amp;gt;= 2&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1664876836747.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52792iA5351231F236DD69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1664876836747.png" alt="JohannesLindner_1-1664876836747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218562#M60651</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-04T09:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based symbology with multiple  !IsEmpty</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218898#M60699</link>
      <description>&lt;P&gt;Thank you for this answer. It worked.&lt;BR /&gt;Now could you explain me how this part works?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// get the count of non-empty values
var c = 0
for(var i in values) {
    c += !IsEmpty(values[i])
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 06:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218898#M60699</guid>
      <dc:creator>arthurV</dc:creator>
      <dc:date>2022-10-05T06:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based symbology with multiple  !IsEmpty</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218901#M60700</link>
      <description>&lt;P&gt;IsEmpty returns a boolean value (true or false). ! is the symbol for "not", it reverses the boolean output. !IsEmpty(value) returns true if the value is not empty.&lt;/P&gt;&lt;P&gt;Booleans can be converted to numbers (true = 1, false = 0). Arcade can do that implicitly, without needing the explicit instruction to do so.&lt;/P&gt;&lt;P&gt;So this code declares a variable c and sets its value to 0. Then it goes through the array of values. For each of those values, it adds the numeric equivalent (0 or 1) of "This value is not empty" to c. So if the value is empty, it adds 0, if the value is not empty, it adds 1. It basically counts the non-empty elements in the array.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 07:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1218901#M60700</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-05T07:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based symbology with multiple  !IsEmpty</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1219729#M60805</link>
      <description>&lt;P&gt;What a great explanation. Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 07:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-based-symbology-with-multiple-isempty/m-p/1219729#M60805</guid>
      <dc:creator>arthurV</dc:creator>
      <dc:date>2022-10-07T07:34:11Z</dc:date>
    </item>
  </channel>
</rss>

