I'm using ArcGIS Pro and am trying to create a label expression. I need the fields without data (NULL) to only say Name. Otherwise, I need it to say the name and the mounding data below it. This is my initial idea behind the code, but it currently doesn't work. The problem seems to be with the 'if' portion of the if / else statement.
def FindLabel ( [Name], [Mounding] ): out="" if [Mounding] is NULL out+= [Name] else out+= "<UND>"+"<BOL>"+[Name]+"</BOL>"+"</UND>"+"\n" + [Mounding] return out