<?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 to exclude fields that are null in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1234094#M62532</link>
    <description>&lt;P&gt;Can you post the code you're using? I tested this code and it's working fine.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 14:24:48 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-11-22T14:24:48Z</dc:date>
    <item>
      <title>Arcade expression to exclude fields that are null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233292#M62410</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am quite a noobie to the expression labeling. I have done some traffic counts at an intersection and was wanting to label each direction according to the ADT and MPH. I am having trouble figuring out how to exclude any null data. I have attached a picture.&lt;BR /&gt;Here is my expression in arcade language.&amp;nbsp;&lt;BR /&gt;Thank your for your time.&lt;BR /&gt;&lt;BR /&gt;$feature.North + ' NB ' + $feature.eightyfifth + ' MPH ' + TextFormatting.NewLine + $feature.South + ' SB ' + $feature.eightyfift + ' MPH ' + TextFormatting.NewLine + $feature.East + ' EB ' + $feature.eighty + ' MPH ' +&lt;BR /&gt;TextFormatting.NewLine + $feature.West + ' WB ' + $feature.eightfive + ' MPH '&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 17:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233292#M62410</guid>
      <dc:creator>hhmpo</dc:creator>
      <dc:date>2022-11-18T17:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to exclude fields that are null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233298#M62411</link>
      <description>&lt;P&gt;See Q&amp;amp;A &lt;A href="https://gis.stackexchange.com/questions/261172/creating-arcade-expression-that-excludes-empty-field-values" target="_self"&gt;here.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 17:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233298#M62411</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-11-18T17:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to exclude fields that are null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233304#M62414</link>
      <description>&lt;P&gt;You'll have to build your expression by checking the values for each of the attributes. This example assumes that if the ADT is empty, its speed will also be empty. If not, you'll have to check for those separately. It also uses &lt;A href="https://developers.arcgis.com/arcade/guide/template-literals/" target="_self"&gt;template literals&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var output;
if (!IsEmpty($feature.North)) output += `${$feature.North} NB ${$feature.eightyfifth} MPH\n`;
if (!IsEmpty($feature.South)) output += `${$feature.South} SB ${$feature.eightyfift} MPH\n`;
if (!IsEmpty($feature.East)) output += `${$feature.East} EB ${$feature.eighty} MPH\n`;
if (!IsEmpty($feature.West)) output += `${$feature.West} WB ${$feature.eightfive} MPH\n`;

return Left(output, Count(output) - 1); //this removes the last carriage return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233304#M62414</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-22T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to exclude fields that are null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233956#M62512</link>
      <description>&lt;P&gt;Hello, thank you.&lt;/P&gt;&lt;P&gt;You are correct, if ADT is empty then Speed is empty.&lt;BR /&gt;but I am getting invalid expression. error on line 7. expected array or feature set&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 23:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1233956#M62512</guid>
      <dc:creator>hhmpo</dc:creator>
      <dc:date>2022-11-21T23:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to exclude fields that are null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1234094#M62532</link>
      <description>&lt;P&gt;Can you post the code you're using? I tested this code and it's working fine.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression-to-exclude-fields-that-are-null/m-p/1234094#M62532</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-22T14:24:48Z</dc:date>
    </item>
  </channel>
</rss>

