On Thursday, June 19, 2003, at 10:09:21 [UTC+0530] (Thursday, June 19, 2003 06:39 my local time) Anirban Das wrote:
> I wanted to do conditional attachment in TB. I gave the following > command in the template > %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^":"%- > %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^':' You must add second quotation mark to the end of each expression: %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^":""%- %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^':''%- In your template each "else" part of conditional macro is undefined due to lack of second " or ' sign. These macros can be also used without "else" part: %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^"%- %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^'%- -- Best regards, Zygmunt Wereszczynski (Using The Bat! v1.63 Beta/11 on Windows 98 4.10 Build 2222 A ) ________________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html
