I am admittedly a novice when it comes to coding but I have written a fairly simple Elseif VBscript in the the Label Expression in ArcMap 10.5. The expression shown below is for Overhead Conductors and currently will display a label based on what phase is input into the Conductor fields (ConductorA, ConductorB, ConductorC, ConductorN ).
I am trying to add onto this expression.
I have a field called Construction Status which contains coded values (Installed, Proposed, Other). I would like the labels for my Overhead Conductors to become bold and a larger font when the Construction Status field says Proposed.
I have tried some basic HTML coding but I keep receiving error messages when trying to verify and am currently at a lose with the little coding experience I have.
Function FindLabel ( [conductora], [conductorb], [conductorc], [conductorn] )
dim a
if [conductora] <> "" and [conductora] <> "NA" then
a = a & [conductora]
elseif [conductorb] <> "" and [conductorb] <> "NA" then
a = a & [conductorb]
elseif [conductorc] <> "" and [conductorc] <> "NA"then
a = a & [conductorc]
elseif [conductorn] <> ""and [conductorn] <> "NA" then
a = a & [conductorn]
end if
FindLabel = a
End Function