I have used the following example from the help file substitution my own fields:
The label shows in my feature class as:
<CLR red='255'><FNT size = '14'>Doe, John & Linda</FNT></CLR>
not in the color red. It shows correctly in the verify box in the expression verification. Also, why do I have to use unicode([FIELD_NAME]) to avoid an error?
Code:
def FindLabel ( [Parcel_No], [Owner_Name] ):
if [Parcel_No] >= 0:
return "<CLR red='255'><FNT size = '14'>" + unicode( [Owner_Name]) + "</FNT></CLR>"
else:
return [Owner_Name]
<CLR red='255'><FNT size = '14'>Doe, John & Linda</FNT></CLR>
not in the color red. It shows correctly in the verify box in the expression verification. Also, why do I have to use unicode([FIELD_NAME]) to avoid an error?