You could try "dumping" values from the template to find out what it's seeing and thinking...
%%AbTOCountry="%AbTOCountry" %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^":"%- %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^':'
The dump syntax will result in the output of: %AbTOCountry="x" into the body of the message.
It is doing the condition perfectly. I have checked the dumped values. It is not using any further macros with the %if macro
anirban
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html
