Select to view content in your preferred language

Writing Custom Label Expressions using Arcade for ArcGIS Online?

4338
12
Jump to solution
04-24-2019 01:26 PM
NevinValles
Occasional Contributor

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 https://developers.arcgis.com/arcade/function-reference/logical_functions/ . 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. 

Tags (2)
0 Kudos
12 Replies
DianaLavery1
Esri Contributor

Labels are a dynamic thing in ArcGIS Online.  The features that actually get labels to show up will probably change as you zoom in & out, and pan around.  At least that's been my experience.

0 Kudos
KellyGerrow
Esri Alum

Can you share your map?

0 Kudos
NevinValles
Occasional Contributor

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!