<?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 Arcade: I Need the Opposite of IsEmpty Inside a When Statement in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-i-need-the-opposite-of-isempty-inside-a/m-p/374542#M2426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an intersect layer (&lt;STRONG&gt;footprintMatch&lt;/STRONG&gt;) in an Arcade expression. I'm setting up a when conditional statement that starts with:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;When&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;propCode &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'100'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;permitYear&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;footprintMatch&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's when the property code is vacant residential land and there has not been a construction permit issued and there is no building footprint, then return nothing. That's truly vacant land.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next conditional I need would be the following scenario:&lt;/P&gt;&lt;P&gt;property code is vacant and there is no construction permit, but there IS a building footprint, then return instructions to view the building footprint in an aerial photo basemap for confirmation. I'm trying to figure out the opposite of IsEmpty. Like how do I signify that there is a match from that intersect layer? In Python I could just place the variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #d74444;"&gt;When&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;(&lt;/SPAN&gt;propCode &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;==&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;'100'&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d74444;"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;(&lt;/SPAN&gt;permitYear&lt;SPAN class="" style="color: #999999;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; footprintMatch&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900;"&gt;'Confirm building footprint in aerial photo'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;.)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to nest an Iif statement in the when statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:20:19 GMT</pubDate>
    <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
    <dc:date>2021-12-11T17:20:19Z</dc:date>
    <item>
      <title>Arcade: I Need the Opposite of IsEmpty Inside a When Statement</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-i-need-the-opposite-of-isempty-inside-a/m-p/374542#M2426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an intersect layer (&lt;STRONG&gt;footprintMatch&lt;/STRONG&gt;) in an Arcade expression. I'm setting up a when conditional statement that starts with:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;When&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;propCode &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'100'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;permitYear&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;footprintMatch&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's when the property code is vacant residential land and there has not been a construction permit issued and there is no building footprint, then return nothing. That's truly vacant land.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next conditional I need would be the following scenario:&lt;/P&gt;&lt;P&gt;property code is vacant and there is no construction permit, but there IS a building footprint, then return instructions to view the building footprint in an aerial photo basemap for confirmation. I'm trying to figure out the opposite of IsEmpty. Like how do I signify that there is a match from that intersect layer? In Python I could just place the variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #d74444;"&gt;When&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;(&lt;/SPAN&gt;propCode &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;==&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;'100'&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d74444;"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;(&lt;/SPAN&gt;permitYear&lt;SPAN class="" style="color: #999999;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5);"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; footprintMatch&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900;"&gt;'Confirm building footprint in aerial photo'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;.)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to nest an Iif statement in the when statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-i-need-the-opposite-of-isempty-inside-a/m-p/374542#M2426</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2021-12-11T17:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: I Need the Opposite of IsEmpty Inside a When Statement</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-i-need-the-opposite-of-isempty-inside-a/m-p/374543#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to negate the IsEmpty statement you can use:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;footprintMatch&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; False&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or shorter:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;footprintMatch&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 19:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-i-need-the-opposite-of-isempty-inside-a/m-p/374543#M2427</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-05-16T19:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: I Need the Opposite of IsEmpty Inside a When Statement</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-i-need-the-opposite-of-isempty-inside-a/m-p/374544#M2428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 19:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-i-need-the-opposite-of-isempty-inside-a/m-p/374544#M2428</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2019-05-16T19:16:01Z</dc:date>
    </item>
  </channel>
</rss>

