AnsweredAssumed Answered

How do I remove null values from Maplex Labeling using Python?

Question asked by hutchisomc05 on Mar 1, 2017
Latest reply on Mar 2, 2017 by hutchisomc05

def FindLabel ( [INSERTEDMAINSIZE], [INSERTEDMAINMATERIAL] ):
  return str([INSERTEDMAINSIZE]) + " " + str([INSERTEDMAINMATERIAL])


 

I'm using ArcMap 10.2.  There are null values in [INSERTEDMAINSIZE] and [INSERTEDMAINMATERIAL].  Instead of labeling the Null values as "None" I don't want them to show up on the map at all.  If there is a value for that features, I want that to label, just not the null values.  How do I add this to the script?

Thanks

Outcomes