<?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 Label Expression Help in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-expression-help/m-p/1270981#M67080</link>
    <description>&lt;P&gt;I am trying to label the name of occupants of cemetery lots in ArcGIS Pro. I have some cases where one lot has more 2+ occupants. I would like both names to be displayed on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My fields consist of First Name &amp;amp; Last Name. When a maiden name was provided, it was included in the First Name field in brackets. I have since removed the maiden name from the label to allow for more space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have copied my current expression below. It is valid but I feel I am missing part of the syntax to allow my 2 statements to work together.&lt;/P&gt;&lt;P&gt;In the case where there are 2 occupants, i am trying to get my final label to appear like 'Jane Doe &amp;amp; John Smith'&lt;/P&gt;&lt;P&gt;var LN1= $feature.LastName&lt;BR /&gt;var FN1 = $feature.FirstName&lt;BR /&gt;var LN2 = $feature.LastName_2&lt;BR /&gt;var FN2 = $feature.FirstName_2&lt;BR /&gt;var a= Split($feature.FirstName,'(',-1, true)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;if(IsEmpty(LN1) == False){&lt;BR /&gt;return a[0] + ' ' + LN1 }&lt;BR /&gt;else if (IsEmpty(LN2) == False){&lt;BR /&gt;return '&amp;amp;' + FN2 + ' ' + LN2 }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to working with Arcade any help or recommendations are greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 17:13:26 GMT</pubDate>
    <dc:creator>STanguay</dc:creator>
    <dc:date>2023-03-23T17:13:26Z</dc:date>
    <item>
      <title>Arcade Label Expression Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-expression-help/m-p/1270981#M67080</link>
      <description>&lt;P&gt;I am trying to label the name of occupants of cemetery lots in ArcGIS Pro. I have some cases where one lot has more 2+ occupants. I would like both names to be displayed on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My fields consist of First Name &amp;amp; Last Name. When a maiden name was provided, it was included in the First Name field in brackets. I have since removed the maiden name from the label to allow for more space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have copied my current expression below. It is valid but I feel I am missing part of the syntax to allow my 2 statements to work together.&lt;/P&gt;&lt;P&gt;In the case where there are 2 occupants, i am trying to get my final label to appear like 'Jane Doe &amp;amp; John Smith'&lt;/P&gt;&lt;P&gt;var LN1= $feature.LastName&lt;BR /&gt;var FN1 = $feature.FirstName&lt;BR /&gt;var LN2 = $feature.LastName_2&lt;BR /&gt;var FN2 = $feature.FirstName_2&lt;BR /&gt;var a= Split($feature.FirstName,'(',-1, true)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;if(IsEmpty(LN1) == False){&lt;BR /&gt;return a[0] + ' ' + LN1 }&lt;BR /&gt;else if (IsEmpty(LN2) == False){&lt;BR /&gt;return '&amp;amp;' + FN2 + ' ' + LN2 }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to working with Arcade any help or recommendations are greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:13:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-expression-help/m-p/1270981#M67080</guid>
      <dc:creator>STanguay</dc:creator>
      <dc:date>2023-03-23T17:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label Expression Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-expression-help/m-p/1270999#M67083</link>
      <description>&lt;LI-CODE lang="javascript"&gt;var LN1= $feature.LastName
var FN1 = Split($feature.FirstName,'(',-1, true)
var LN2 = $feature.LastName_2
var FN2 = $feature.FirstName_2

if(IsEmpty(FN2)) {
    return `${FN1} ${LN1}`
}
return `${FN1} ${LN1} &amp;amp; ${FN2} ${LN2}`&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:29:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-expression-help/m-p/1270999#M67083</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-03-23T17:29:24Z</dc:date>
    </item>
  </channel>
</rss>

