Hello Jan,

Historians believe that Sunday, December 16, 2001 at 21:05 GMT -0500
was when, Jan Rifkinson [JR] typed the following:

JR>   In principle I think I understand what you mean. Trying to
JR>   write it out a different way:

JR> ,----- [[1] - [4] = different delimiters]
JR> | %IF:[1]%TOADDR[1]=[1][EMAIL PROTECTED][1]:%REPLYTO=[1]bouvtrain@yahoo,com[1]:
JR> | %IF:[2]%TOADDR[2]=[2][EMAIL PROTECTED][2]:%REPLYTO=[2][EMAIL PROTECTED][2]:
JR> | %IF:[3]%TOADRR[3]=[3][EMAIL PROTECTED][3]:%REPLYTO=[3][EMAIL PROTECTED][3]:
JR> | 
%IF:[4]%TOADDR[4]=[4][EMAIL PROTECTED][4]:%REPLYTO=[4][EMAIL PROTECTED][4][1]
JR> |                                                                 Is this correct 
& ^^^ what does this match?
JR> '-----

Actually, you don't have it quite right.  Using your example:

%IF:[1]%TOADDR[1]=[1][EMAIL PROTECTED][1]:[1]%REPLYTO=[2][EMAIL PROTECTED][2][1]:[1]%-
%IF:[2]%TOADDR[2]=[2][EMAIL PROTECTED][2]:[2]%REPLYTO=[3][EMAIL PROTECTED][3][2]:[2]%-
%IF:[3]%TOADDR[3]=[3][EMAIL PROTECTED][3]:[3]%REPLYTO=[4][EMAIL PROTECTED][4][3]:[3]%-
%IF:[4]%TOADDR[4]=[4][EMAIL PROTECTED][4]:[4]%REPLYTO=[5][EMAIL PROTECTED][5]%-
[4][3][2][1]

If you want a final default value, replace that last line with:

[4]:[4]<default value>[4][3][2][1]

Maybe even this is too mixed up for you to be able to visualize
easily.  Remember the general composition for each %IF macro:
%IF:"<string1>"="<string2>":"<yes template>":"<no template>"

You *must* keep the quotation marks around the yes and no templates.
That's what you're stripping in your example.  It doesn't matter if
all the "mini-template" does is to use one macro, that macro must be
surrounded by the quotation marks.  I don't know how I can make it any
clearer than that by text alone.  If you still don't see what I mean,
maybe I'll have to try something more visual.

A word of caution:
A couple of versions ago, there was a problem with nesting too many
levels in %IF statements, I don't know if that's been fixed.

JR>   So TIA for any further tutoring you can offer.

No problem.


-- 
Thanks for writing,
 Januk Aggarwal

With these words, this page is no longer blank but is complete.


-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to