Defendant() Function
Defendant() first searches for a matter note with a note type of DEFS, then returns the entire contents of that note (presumably containing a multi-line caption for the defendants for a court form). If no such note is found, the function searches for a name linked to the matter with a link type of DEF and returns the Label1 value for that record.