You mean something like
If (UserListToEmails([Analyst])="analyst #1 email address", "supervisor#1 email",
UserListToEmails([Analyst])="analyst #2 email address", "supervisor #2 email")
???
When I tried this, it gave me an error.
"The types of the arguments or the number of arguments supplied do not meet the requirements of the function
UserListToEmails.
The function is defined to be
UserListToEmails (UserList ul).