I'm trying to label parcels from a shapefile in the Python expression below in ArcGIS 10.2. All parcels should be labeled with the last 8 characters of their [PARCEL_NUM], and parcels 10 acres or greater should also include their [PROP_ADDRE]. [Acres] is a Double field.
Instead, all parcels get labeled with [PARCEL_NUM] and [PROP_ADDRE]. Using Maplex, land parcel placement. Any ideas on what's going wrong?
In response to comments, no, no errors verifying the expression. Tried switching to checking for [ACRES] < 10.0 first, no difference. Also, as noted above, [ACRES] is a Double data type. No Null values in any of the three fields.
def FindLabel ( [PARCEL_NUM], [PROP_ADDRE], [Acres] ): if [Acres] >= 10.0: return [PARCEL_NUM][-8:] + '\n' + [PROP_ADDRE] else: return [PARCEL_NUM][-8:]