I'm stumped. In the if statement below, I want it to evaluate to true for both 'Y' and 'y'. I can't seem to figure out how to use the upper(S) function. <!--#if "DateTentative=='Y'"--> evaluates to true for 'Y', but false for 'y' Help is always appreciated... Jeff.
At 07:34 05/05/99 , Jeff Nielsen wrote:
I'm stumped. In the if statement below, I want it to evaluate to true for both 'Y' and 'y'. I can't seem to figure out how to use the upper(S) function.
<!--#if "DateTentative=='Y'"--> evaluates to true for 'Y', but false for 'y'
Help is always appreciated...
Jeff.
How about: <!--#if "DateTentative in ('y', 'Y')"--> -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
Jeff Nielsen wrote:
I'm stumped. In the if statement below, I want it to evaluate to true for both 'Y' and 'y'. I can't seem to figure out how to use the upper(S) function.
<!--#if "DateTentative=='Y'"--> evaluates to true for 'Y', but false for 'y'
<!--#if "_.string.upper(DateTentative)=='Y'"--> -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (3)
-
Jeff Nielsen -
Jim Fulton -
Martijn Pieters