That worked great. Now I have an additional problem, how do I include this in my overall script to annotate a feature using other fields, not just the ones above, that don't have null values. This is my entire script. Where would I add in what you sent me.
def FindLabel ( [MAINSIZE], [MAINMATERIALTYPE], [SYSTEMMAOP], [INSTALLATIONDATE], [WORKORDERNUMBER], [INSERTEDMAINSIZE], [INSERTEDMAINMATERIAL] 😞
return [MAINSIZE] + " " + [MAINMATERIALTYPE] + " " + [SYSTEMMAOP] + "D" + " " + ([INSTALLATIONDATE][-2:]) + " " + [WORKORDERNUMBER]
The 5 fields I'm using here all have a value. I want to add the inserted information (INSERTEDMAINSIZE and INSERTEDMAINMATERIAL) if applicable, on another line ("r\n"). Where would I put the join(filter(None.... to get my final label?