Hello Jan,
On Sunday, December 16, 2001 at 10:44 GMT -0500, a creature mimicking
Jan Rifkinson [JR] wrote:
JR> Clearly I haven't grasped the concept yet. But if I can
JR> get this working, it will be very useful for me.
The quotation marks are what are causing the problems. They are
required, regardless of what you're trying to use for the arguments.
Remember the format for the %IF macro is:
%IF:"<string1>"="<string2>":"<yes option>":"<no option>"
You can use macros inside the various parts. If the macros have
arguments [1], then you need to change quotation marks so TB can tell
which ones belong to which macro. You can put macros within the
arguments of the macros that are in the argument of the top level, and
it all gets a little confusing. To keep it simpler, use unique
delimiters instead of doubling up delimiters whenever possible. The
current beta series makes this very easy because TB just looks at the
first character after the '=' (or the ':' in the case of %IF).
[1] For example: %TO needs to know what address you want to send the
message to. So you specify it in the argument,
%TO="[EMAIL PROTECTED]"
To answer your question, try:
%IF:"%-
%TOADDR%-
"="%-
[EMAIL PROTECTED]%-
":"%-
%REPLYTO='[EMAIL PROTECTED]'%-
":"%-
%IF:'%-
%TOADDR%-
'='%-
[EMAIL PROTECTED]%-
':'%-
%REPLYTO=''[EMAIL PROTECTED]''%-
':'%-
%REPLYTO=''[EMAIL PROTECTED]''%-
'"
I've split this up into multiply lines in the extreme. If that makes
it harder to read, you can put it all in one line like:
%IF:"%TOADDR"="[EMAIL PROTECTED]":"%REPLYTO='[EMAIL PROTECTED]'":"%IF:'%TOADDR'='[EMAIL PROTECTED]':'%REPLYTO=''[EMAIL PROTECTED]''':'%REPLYTO=''[EMAIL PROTECTED]'''"
JR> Any help would be appreciated.
Does this answer help clear things up?
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.54 Beta/16a under Windows 98 4.10 Build 67766446 A
I've determined the momentum of my physics assignment so precisely
that it can be anywhere in the universe right now.
--
______________________________________________________
Archives : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]