A Bat-fellow, Januk Aggarwal,
wrote on Saturday, July 28, 2001 at 22:19:25 (GMT -0700),
which was Sunday 7:19 a.m. in Bratislava --
JA> It only worked for me when I specified the format using the Beta
JA> series %TIME="hh:mm" macro. So for me, I used:
JA> %IF:"%TIME='hh:mm'"<"12:00":"morning":"%-
JA> %IF:""%TIME='hh:mm'"">""17:00"":""evening"":""afternoon"""
Thanks a lot, this works here as well.
But when it comes to adding another (third or more) condition:
JA> This worked for me. Note that I did the line breaks inside of the
JA> strings, and I followed the nested string delimiter rules.
JA> %IF:'%DOW'='Sunday':'Enjoy your Sunday!':'%-
JA> %IF:''%DOW''=''Saturday'':''Enjoy your Saturday!'':''%-
JA> %IF:'''%DOW'''='''Friday''':'''Enjoy your weekend!''':'''%-
JA> Take care!'''%-''%-'
This produces bizarre results here. Here's what I put in my reply
template:
%IF:'%DOW'='Sunday':'Enjoy your Sunday!':'%-
%IF:''%DOW''=''Saturday'':''Enjoy your Saturday!'':''%-
%IF:'''%DOW'''='''Friday''':'''Enjoy your weekend!''':'''%-
Take care!'''%-''%-'
%DOW
And the output?
Enjoy your Sunday!Sunday'''='''Friday''':'''Enjoy your weekend!''':'''Take care!''''''
Sunday
What's going on here? ;-))) If the above template works as
expected on your computer but produces gibberish on mine, when I
did nothing but copy it from your email, what could possibly be
the reason?
Also, the exponential growth of quotation marks as more
conditions are added to the %IF macro (even if it did work as
expected) threatens to get out of hand. It is often necessary to
insert Quick Templates output into these %IF macros and this
circumstance, for the third line of the above template, might
entail something like:
%IF:'''%QINCLUDE'''='''""day""'''='''Friday''':'''Enjoy your weekend!''':'''%-
where it's no longer clear what the purpose of all those double
or single quote marks is. Let alone if this would happen for the
fifth or sixth stringed condition in an %IF macro.
Somehow these things are still in the developing stages. Still,
even what we have today has already managed to produce
magnificent results.
--
Yours,
Alex. of Slovakia
www.avenarius.sk
[flying with The Bat! 1.54 Beta/4
under Windows 98 4.10 Build 2222 A
amd k6-2 500 mhz processor with 128 mb ram]
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>