I have a name pattern like this:
%1 %2, %3

For example:
John Doe, CEO

But all fields are optional, so I might end up with:
John Doe,

In this case I want to omit the comma, if %3 is empty.

Something like:
%1 %2{if !empty(%3)}, {/if}%3

Is this possible with RealName module somehow?

Comments

Actron’s picture

Execution of PHP code would solve this problem:
#871492: Allow PHP execution in the name pattern

hass’s picture

Issue summary: View changes
Status: Active » Closed (outdated)