Style Editor: conditional text element inside the component
I had to create a new style, which uses transliterated data from several custom fields. For instance, my style uses transliterated editors' names from the 'Custom field 3' for 'Contribution' reference type. The corresponding component looks like the following:
In:·Custom field 3·(eds.)My problem is emulating Citavi's function of determining whether there are plural or single editor(s). If 'Custom field 3' contains several editors, it always contains a comma, which is never the case for a single editor. This creates a possibility for conditional formatting, but I can't figure out how to implement this.
I guess my only option is creating a separate (ed.)/(eds.) component and 'Filter output of this component part via program code'. Any help with such code would by helpful. I'm using Citavi 5.