Pages: 1
RSS
Simple macro problem with %IF
 
Hi,

I am having a problem which I am sure has a stupidly simple solution.
I want to do this:
%IF:"%ABToGender"="Female":"Ms":"Mr"
so that every female recipient is addressed with Ms, every male with Mr. However, TB always returns Mr, and I can't figure out why this is.
Can anyone enlighten me, please?

Regards

Norbert Hofmann
 
%ABToGender returns 0 when gender is unspecified, 1 if male, 2 if female.

%IF:"%ABToGender"="2":"Ms":"Mr"
 
Hi K_S,

Thanks a lot, that's done the trick.

Best regards

Norbert Hofmann
Pages: 1