Select to view content in your preferred language

Arcade expression producing extra space in output

167
4
Jump to solution
Monday
dsinha
by
Regular Contributor

Hello,

I am trying to create an label expression to show street names, where if there is not a direction prefix (st_predir), then it ignores it and creates the label with the name (st_name) and street type (st_postyp).

It mostly doing what I want, except blank space appears at the beginning of the label when the st_predir field is empty (see below).

dsinha_0-1747676082217.png

Thanks!

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

What about around line 4?


... sort of retired...

View solution in original post

4 Replies
DanPatterson
MVP Esteemed Contributor

throw the whole expression inside a "trim" perhaps

Text functions | ArcGIS Arcade | Esri Developer


... sort of retired...
0 Kudos
dsinha
by
Regular Contributor

Thanks @DanPatterson, but it didn't work. 🙁

dsinha_0-1747677893632.png

 

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

What about around line 4?


... sort of retired...
dsinha
by
Regular Contributor

Thanks @DanPatterson . That did it! 😊

0 Kudos