Add conditional rules in inventory templates

Add conditional rules in inventory templates

Hello,

in germany we have different salutation depending on gender. For women (Frau) it is "Sehr geehrte" for male (Herr) it is "Sehr geehrteR".

Is there a way to have "if then else" conditions like in word?

Or is there in general a different way to implement inventory templates than this bad Tool or HTML Code that is implemented? Like an extension?

Thanks