Great feedback, thanks.
With your help I was able to use the following python label expression in my mapbook.
For any water pipeline attributed with, "abandon", do not label. Also, if any pipeline is null then label as seen below.
def FindLabel ([PLAN], [AGENCY]):
if [AGENCY] == "ABANDON":
return None
elif [PLAN] in (None, " "):
return "Plan ?"
else:
return [PLAN]
I need to also only show pipeline labels for pipe greater than 50 feet. I tested out the following and it doesn't work. I would then need to add it to my current expression.
Any ideas what is wrong with my expression.
Thanks
def FindLabel ( [SHAPE.LEN], [PLAN] ):
if [SHAPE.LEN] > 50:
return [PLAN]
else:
return [PLAN]