<?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: Writing Custom Label Expressions using Arcade for ArcGIS Online? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540895#M27376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share how your data looks like and provide an example of what you would like to obtain for the different situations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2019 12:17:47 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2019-04-25T12:17:47Z</dc:date>
    <item>
      <title>Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540894#M27375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not familiar with Arcade, but I'm trying to do a simple expression. I need to write an if-else label expression that will label addresses by their address number, unless there is a address unit number; then I would want the label to show the unit number. I've researched this documentation&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/"&gt;https://developers.arcgis.com/arcade/function-reference/logical_functions/&lt;/A&gt;&amp;nbsp;. I need a statement something like: If address is not Null than populate, or else populate unit number. I'm just not familiar with the Arcade structure.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 20:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540894#M27375</guid>
      <dc:creator>NevinValles</dc:creator>
      <dc:date>2019-04-24T20:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540895#M27376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share how your data looks like and provide an example of what you would like to obtain for the different situations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540895#M27376</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-04-25T12:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540896#M27377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the address numbers to display/label by default, unless there is an address for the unit. There can be many units associated to the one address and we need to display these. For example, a parcel with 10 units should display the 10 unit numbers as separate points, but there is still an individual point with just the address number that should be displayed as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Address Data Table" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/443922_AddressNumber_Unit.PNG" /&gt;&lt;IMG alt="Address Data Table" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/443923_AddressUnitLabel.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 15:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540896#M27377</guid>
      <dc:creator>NevinValles</dc:creator>
      <dc:date>2019-04-25T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540897#M27378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, this is my first time using Geonet and I added a new comment rather than replying. I'm not to sure if you will receive a notification from my comment so i'm replying here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 15:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540897#M27378</guid>
      <dc:creator>NevinValles</dc:creator>
      <dc:date>2019-04-25T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540898#M27379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try combining the "isEmpty()" and the "iif()" logic functions, which works similar to the if-function in Excel:&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; font-size: 1.2019rem; margin: 0px 0px 0.75rem;"&gt;IIf( condition, trueValue, falseValue )&lt;/P&gt;&lt;P&gt;in your case, it sounds like it would be&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;H4&gt;&lt;STRONG&gt;iif(isEmpty(addrunit),addrnmbr,addrunit)&lt;/STRONG&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the Arcade Function Reference list for your reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/"&gt;https://developers.arcgis.com/arcade/function-reference/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 20:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540898#M27379</guid>
      <dc:creator>DianaLavery1</dc:creator>
      <dc:date>2019-04-26T20:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540899#M27380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/328806"&gt;Nevin Valles&lt;/A&gt;&amp;nbsp;, adding a reply to the same thread is the way to go. I'm sorry that I did not answer before, but the&amp;nbsp;answer provided by&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/264733"&gt;Diana Lavery&lt;/A&gt;&amp;nbsp;should be the way to go (if the field is really empty). Can you please try that suggestion? If it works, please mark her post as the right answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2019 20:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540899#M27380</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-04-27T20:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540900#M27381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, You might have to use feature notation..., meaning it might be&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;iif(isEmpty($feature.addrunit),$feature.addrnmbr,$feature.addrunit)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 04:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540900#M27381</guid>
      <dc:creator>DianaLavery1</dc:creator>
      <dc:date>2019-04-30T04:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540901#M27382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still not getting the labels to display correctly. It is displaying only some of the ADDRNMBR's and some of the ADDRUNIT's.&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/445343_LabelExpression.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540901#M27382</guid>
      <dc:creator>NevinValles</dc:creator>
      <dc:date>2019-04-30T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540902#M27383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the field is not really Empty (Null) and contains a space or something similar. This could explain the behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 16:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540902#M27383</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-04-30T16:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540903#M27384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've made sure that the field is empty. Once I type in any number to ADDRUNIT that number will be labeled, but once I delete that unit number then the ADDRRNMBR is displayed. Otherwise, there is no label displayed.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 16:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540903#M27384</guid>
      <dc:creator>NevinValles</dc:creator>
      <dc:date>2019-04-30T16:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540904#M27385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Labels are a dynamic thing in ArcGIS Online.&amp;nbsp; The features that actually get labels to show up will probably change as you zoom in &amp;amp; out, and pan around.&amp;nbsp; At least that's been my experience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 22:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540904#M27385</guid>
      <dc:creator>DianaLavery1</dc:creator>
      <dc:date>2019-04-30T22:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540905#M27386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 16:14:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540905#M27386</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2019-05-06T16:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Custom Label Expressions using Arcade for ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540906#M27387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander was correct because there were records in the field that had spaces, once I reclaculated the expression worked perfectly! Thank you for the expression Diana and thank you for the correction Xander!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 19:20:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/writing-custom-label-expressions-using-arcade-for/m-p/540906#M27387</guid>
      <dc:creator>NevinValles</dc:creator>
      <dc:date>2019-05-07T19:20:08Z</dc:date>
    </item>
  </channel>
</rss>

