[Zope] Simple ZSQL question -- variable expansion in dtml-if?
J C Lawrence
claw@kanga.nu
Tue, 11 Jan 2000 10:17:27 -0800
On Tue, 11 Jan 2000 07:51:22 -0600
Jim Sanford <jsanford@atinucleus.com> wrote:
> SELECT * FROM table
> <dtml-if "X==1">
> WHERE col=1
> <dtml-elif "X==-1">
> WHERE col=0
> </dtml-if>
> should work. It assumes that X will only be between -1 and 1.
That's pretty close to what I did at the beginning and what I just
triied just now -- X doesn't get expanded for the conditional inside
a ZSQL object AFAICT.
--
J C Lawrence Home: claw@kanga.nu
----------(*) Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--