<?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 Expressions: IsEmpty shows same result in pop-up for every row in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/expressions-isempty-shows-same-result-in-pop-up/m-p/1103888#M42398</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I'm trying to hide empty fields in a pop-up with a expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var geboortedatum2 = "Geb. " + $feature.GEBOORTED2;
var overledendatum2 = "Overl. " + $feature.OVERLIJDE2;
IIf(IsEmpty($feature.OVERLIJDE2),"",geboortedatum2 + TextFormatting.NewLine + overledendatum2);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pop-up doesn't seem to use my expression.&lt;BR /&gt;In the attachement you can see that it always shows the string info, regardless an empty row or not.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 10:55:09 GMT</pubDate>
    <dc:creator>RaoulLeysen</dc:creator>
    <dc:date>2021-10-01T10:55:09Z</dc:date>
    <item>
      <title>Expressions: IsEmpty shows same result in pop-up for every row</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/expressions-isempty-shows-same-result-in-pop-up/m-p/1103888#M42398</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I'm trying to hide empty fields in a pop-up with a expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var geboortedatum2 = "Geb. " + $feature.GEBOORTED2;
var overledendatum2 = "Overl. " + $feature.OVERLIJDE2;
IIf(IsEmpty($feature.OVERLIJDE2),"",geboortedatum2 + TextFormatting.NewLine + overledendatum2);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pop-up doesn't seem to use my expression.&lt;BR /&gt;In the attachement you can see that it always shows the string info, regardless an empty row or not.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 10:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/expressions-isempty-shows-same-result-in-pop-up/m-p/1103888#M42398</guid>
      <dc:creator>RaoulLeysen</dc:creator>
      <dc:date>2021-10-01T10:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions: IsEmpty shows same result in pop-up for every row</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/expressions-isempty-shows-same-result-in-pop-up/m-p/1103892#M42399</link>
      <description>&lt;P&gt;Expression looks good. My guess would be that your "empty" fields aren't really empty (null or "") but have some value like " " in them.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 11:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/expressions-isempty-shows-same-result-in-pop-up/m-p/1103892#M42399</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-01T11:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions: IsEmpty shows same result in pop-up for every row</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/expressions-isempty-shows-same-result-in-pop-up/m-p/1110171#M42686</link>
      <description>&lt;P&gt;I would suggest setting a variable for IsEmpty($feature.OVERLIJDE2) and console the output.&lt;/P&gt;&lt;P&gt;var empty =&amp;nbsp;IsEmpty($feature.OVERLIJDE2)&lt;/P&gt;&lt;P&gt;Console(empty)&lt;/P&gt;&lt;P&gt;This will console either true or false.&amp;nbsp; Doing this, you may find fields you think are NULL are actually blank (AKA '').&lt;/P&gt;&lt;P&gt;Otherwise, I've also found setting the ImEmpty to a variable and using that as the test in the IIF works better.&lt;/P&gt;&lt;P&gt;var empty =&amp;nbsp;IsEmpty($feature.OVERLIJDE2)&lt;/P&gt;&lt;P&gt;Console(empty)&lt;/P&gt;&lt;P&gt;IIF(empty == true,'True','False')&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 11:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/expressions-isempty-shows-same-result-in-pop-up/m-p/1110171#M42686</guid>
      <dc:creator>JasonGlidewell</dc:creator>
      <dc:date>2021-10-22T11:21:49Z</dc:date>
    </item>
  </channel>
</rss>

