<?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: Label Expression in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208927#M8476</link>
    <description>&lt;P&gt;I had forgotten that VBScript doesn't have an incremental operator (+=).&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Function FindLabel ( [Situs_Num], [Situs_St], [Situs_Unit] ) 
  FindLabel = [Situs_Num] + " " + [Situs_St]
  if ( [Situs_Unit] &amp;lt;&amp;gt; null ) then 
    FindLabel = FindLabel + " #" + [Situs_Unit]
  end if
End Function&lt;/LI-CODE&gt;&lt;P&gt;Is then field [Situs_Unit] a numeric field and does it have a null value or is it a string field with an empty string?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 22:14:02 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-09-01T22:14:02Z</dc:date>
    <item>
      <title>Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208252#M8468</link>
      <description>&lt;P&gt;If the [Situs_Unit] field is blank on the parcel layer I would like the # sign to not show on the map labeling.&amp;nbsp; Is there a way this can be accomplished?&lt;/P&gt;&lt;P&gt;This is my label expression for my parcel layer.&amp;nbsp; [Situs_Num] &amp;amp; " " &amp;amp; [Situs_St] &amp;amp; " # " &amp;amp; [Situs_Unit].&amp;nbsp; If the parcel has info in this field, [Stius_Unit], it looks like this:&amp;nbsp; 103 Park #421.&amp;nbsp; If the parcel has no info in the unit field it looks like this:&amp;nbsp; 124 Park #.&amp;nbsp; is there a way in the expression to remove the # sign if the field is blank?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Linda Jo&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 15:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208252#M8468</guid>
      <dc:creator>lindajo04</dc:creator>
      <dc:date>2022-08-31T15:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208259#M8469</link>
      <description>&lt;P&gt;Any label expression language should allow you to use a conditional statement to build your label. It looks like you're using VBScript, is that right? I wouldn't know the specifics for that, if there's a particular reason you need VBScript, but it's fairly straightforward.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 15:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208259#M8469</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-08-31T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208351#M8470</link>
      <description>&lt;P&gt;You can build the label using VBScript this way&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Function FindLabel ( [Situs_Num], [Situs_St], [Situs_Unit] ) 
  FindLabel = [Situs_Num] + " " + [Situs_St]
  if ( [Situs_Unit] &amp;lt;&amp;gt; null ) then 
    FindLabel += " #" + [Situs_Unit]
  end if
End Function&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 18:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208351#M8470</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-08-31T18:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208773#M8471</link>
      <description>Thank you for your feedback. When I try the expression this is what I get:&lt;BR /&gt;[cid:image001.png@01D8BDE8.A6716020]&lt;BR /&gt;[cid:image002.png@01D8BDE8.A6716020]&lt;BR /&gt;Any thoughts on what I did wrong?&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Sep 2022 16:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208773#M8471</guid>
      <dc:creator>lindajo04</dc:creator>
      <dc:date>2022-09-01T16:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208781#M8472</link>
      <description>&lt;P&gt;Can you reload those images?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 17:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208781#M8472</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-09-01T17:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208890#M8473</link>
      <description>Here is the response I get using the suggested code. Can you help me with what I did wrong?&lt;BR /&gt;&lt;BR /&gt;[cid:image001.png@01D8BE08.8D43DB80][cid:image002.png@01D8BE08.8D43DB80]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208890#M8473</guid>
      <dc:creator>lindajo04</dc:creator>
      <dc:date>2022-09-01T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208900#M8474</link>
      <description>&lt;P&gt;Unfortunately, the images that you're uploading don't seem to be working properly.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 21:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208900#M8474</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-09-01T21:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208912#M8475</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lindajo04_0-1662068519812.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50185iC33A1EB824900F7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lindajo04_0-1662068519812.png" alt="lindajo04_0-1662068519812.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lindajo04_1-1662068535445.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50186i6A2ACD8C64E00AA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lindajo04_1-1662068535445.png" alt="lindajo04_1-1662068535445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here are the images I have been trying to send you.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 21:42:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208912#M8475</guid>
      <dc:creator>lindajo04</dc:creator>
      <dc:date>2022-09-01T21:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208927#M8476</link>
      <description>&lt;P&gt;I had forgotten that VBScript doesn't have an incremental operator (+=).&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Function FindLabel ( [Situs_Num], [Situs_St], [Situs_Unit] ) 
  FindLabel = [Situs_Num] + " " + [Situs_St]
  if ( [Situs_Unit] &amp;lt;&amp;gt; null ) then 
    FindLabel = FindLabel + " #" + [Situs_Unit]
  end if
End Function&lt;/LI-CODE&gt;&lt;P&gt;Is then field [Situs_Unit] a numeric field and does it have a null value or is it a string field with an empty string?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 22:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-expression/m-p/1208927#M8476</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-09-01T22:14:02Z</dc:date>
    </item>
  </channel>
</rss>

