On Saturday, July 28, 2001, at 7:49:40 PM, you scribbled that:

A>> %IF:'%DOW'='Sunday':'Enjoy your Sunday!':'%-
A>> %IF:''%DOW''=''Saturday'':''Enjoy your Saturday!'':''%-
A>> %IF:'''%DOW'''='''Friday''':'''Enjoy your weekend!''':'''%-
A>> Take care!'''%-''%-'

A>> Enjoy your Sunday!Sunday'''='''Friday''':'''Enjoy your weekend!''':'''Take 
care!''''''

> %IF:'%DOW'='Sunday':'Enjoy your Sunday!':'%-
> %IF:''%DOW''=''Saturday'':''Enjoy your Saturday!'':''%-
> %IF:"%DOW"="Friday":"Enjoy your weekend!":"%-
> Take care!"%-''%-'

A>>      Also, the exponential growth of quotation marks as more
A>>      conditions are added to the %IF macro (even if it did work as
A>>      expected) threatens to get out of hand.

Uuuugh. That's why I suggested converting the "quoted" macros to (bracketed)
ones. Turning %IF:"expr"=="val":"true":"false" would look better as
%IF("expr"=="val":"true":"false"), as the brackets would clearly identify
where the %IF starts and ends. That goes for all %REGEXP... macros, and
probably all of them as well.

"Quoted" values were good for non-nested macros. I think it's high time to
upgrade on it.

-- 
The Coors beer slogan used in the USA "Get loose with Coors," became,
"Get the runs with Coors" upon translation into Spanish.

 |\  /|      \~~~/     \~~~/   WWW: http://maxxx.ii.com.pl (ancient)
 | \/ |  /\   > <  \~/  > <    E-M: [EMAIL PROTECTED] (remove nospam)
 |____| /__\ /___\ /_\ /___\   ICQ: 3146019 (currently inactive)

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


Reply via email to