<?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 Label Class using Expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/label-class-using-expression/m-p/1332513#M73473</link>
    <description>&lt;P&gt;I have been attempting label certain objects in a layer based on another field being populated or "NOT NULL". I am fairly new to ESRI and python and still learning and could use some assistance.&lt;/P&gt;&lt;P&gt;My attempt at a script is as follows:&lt;/P&gt;&lt;P&gt;def FindLabel ([STATUS], [FRSTDIVNO]):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if ([STATUS]) IS NOT NULL:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print ([FRSTDIVNO])&lt;/P&gt;&lt;P&gt;I am getting a syntax error:&lt;/P&gt;&lt;P&gt;Invalid Expression&lt;/P&gt;&lt;P&gt;File "&amp;lt;string&amp;gt;", line 2&lt;/P&gt;&lt;P&gt;if (esri_0) IS NOT NULL:&lt;/P&gt;&lt;P&gt;SyntaxError: invalid syntax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 16:20:10 GMT</pubDate>
    <dc:creator>AnthonyHenager</dc:creator>
    <dc:date>2023-09-26T16:20:10Z</dc:date>
    <item>
      <title>Label Class using Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/label-class-using-expression/m-p/1332513#M73473</link>
      <description>&lt;P&gt;I have been attempting label certain objects in a layer based on another field being populated or "NOT NULL". I am fairly new to ESRI and python and still learning and could use some assistance.&lt;/P&gt;&lt;P&gt;My attempt at a script is as follows:&lt;/P&gt;&lt;P&gt;def FindLabel ([STATUS], [FRSTDIVNO]):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if ([STATUS]) IS NOT NULL:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print ([FRSTDIVNO])&lt;/P&gt;&lt;P&gt;I am getting a syntax error:&lt;/P&gt;&lt;P&gt;Invalid Expression&lt;/P&gt;&lt;P&gt;File "&amp;lt;string&amp;gt;", line 2&lt;/P&gt;&lt;P&gt;if (esri_0) IS NOT NULL:&lt;/P&gt;&lt;P&gt;SyntaxError: invalid syntax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 16:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/label-class-using-expression/m-p/1332513#M73473</guid>
      <dc:creator>AnthonyHenager</dc:creator>
      <dc:date>2023-09-26T16:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Label Class using Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/label-class-using-expression/m-p/1332523#M73474</link>
      <description>&lt;P&gt;If you want assistance, it will help if you state which software you require assistance in as the syntax is applicable to ArcMap or ArcPro...&lt;/P&gt;&lt;P&gt;Edit your question, don't just simply reply to this as others then have to trawl through a pointless conversation.&lt;/P&gt;&lt;P&gt;ALSO format your code (via the 3 dots), its difficult to read and indentation is critical in python.&lt;/P&gt;&lt;P&gt;A question where you have put time and effort in formatting and providing all the required information gets answered a lot quicker!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 16:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/label-class-using-expression/m-p/1332523#M73474</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2023-09-26T16:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Label Class using Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/label-class-using-expression/m-p/1332539#M73479</link>
      <description>&lt;P&gt;You have to use None instead of NULL and put "is not" in lower case.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def FindLabel ( [STATUS], [FRSTDIVNO] ):
  if [STATUS] is not None:
    return ([FRSTDIVNO])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 17:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/label-class-using-expression/m-p/1332539#M73479</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-09-26T17:15:28Z</dc:date>
    </item>
  </channel>
</rss>

