I am having problems with label expression in ArcMap 10.2.1.
I want to show two labels per polygon, but only when there are two labels to show.
Every polygon has at least one label (Veg_Dominant), but some polygons also have a second (Veg_codominant). I want polygons with only one label to show this one label, and polygons with two labels to show both with a '+' sign in between.
This is how I entered it in the label expression:
This is how it looks in the map:
is there a way to only show the '+' sign when there is more than one label to show?
Best Answer
In the Label Expression, switch to "advanced", select VBScript as Parser, and paste this code:
This expression means: if veg_codominant has values, then the label will be field1+field2, otherwise if the field is empty, use only field1 as the label