Heya,
.
I know this doesn't apply to you for this case in your project, but I was solving a similar combination of names just recently. I wanted to share what I came up with for a semi-logical concatenation snippet:
.
ifnull(nullif(employee.nameLast || ', ' || employee.nameFirst || ' (' || employee.nameNick || ')', employee.nameLast || ', ' || employee.nameFirst), employee.nameLast || ', ' || employee.nameFirst)
.
I needed an if this else that type of logic in a calculated field. As far as I know, there is no such structure for calculated fields. I was about to ask for help with it, but then I experimented with the ifnull and nullif combinations and got it working as desired.
.
Anyways, maybe it will help someone else in the future.
"Energy and persistence conquer all things."