I am trying to use a find label expression that changes the font of one field, [NUMBERNAME]
. I am using the Python parser of ArcGIS 10.3.1 for Desktop.
All fields have a data type of text. This is what I have...
def FindLabel ([NUMBERNAME]):
lineone = "A:"+ [NUMBER]
absName = "<CLR red='255'><FNT size = '14'>" + [NUMBERNAME] + "</FNT></CLR>"
if [NUMBERNAME] != None:
return lineone + '\n' + absName + '\n' + "BLK:" + [BLOCK] + '\n' + "SEC:"+ [SURNUM]
I am getting an error. Any thoughts as to what is wrong?
Error:
The expression contains an error. Modify the expression and try again. Error 0 on line 0. SyntaxError: invalid syntax(string, line 2).
.format()
:"{0}\n{1}\nBLK:{2}\nSEC:{3}".format(absName, [BLOCK], [SURNUM])