This one is so dumb you'll be laughing, but any help would be greatly
appreciated.
I need to evaluate an IF. That's all. I have a variable called Action
that's a string, and it can be null, "Add", "Update" etc.
I try something along the lines of:
dtml-if action == "add"
dtml-if action == "add"
blah
/dtml-if
dtml-if "action == 'add'"
blah
/dtml-if
Things inside quotes get evaluated as Python expressions. :)
Have fun Zopeing!
-CJ
___
Zope maillist - [EMAIL PROTECTED]
At 5:01 pm +0100 23/5/00, Andy Gates wrote:
This one is so dumb you'll be laughing, but any help would be greatly
appreciated.
I need to evaluate an IF. That's all. I have a variable called Action
that's a string, and it can be null, "Add", "Update" etc.
I try something along the lines of:
Andy Gates wrote:
dtml-if action == "add"
dtml-if "action=='add'"
Been there, done that, learned the magic incantations ;-)
The " " makes it into a python expression...
cheers,
Chris
___
Zope maillist - [EMAIL PROTECTED]
At 05:01 PM 5/23/00 +0100, you wrote:
This one is so dumb you'll be laughing, but any help would be greatly
appreciated.
I need to evaluate an IF. That's all. I have a variable called Action
that's a string, and it can be null, "Add", "Update" etc.
I try something along the lines of:
Andy Gates writes:
This one is so dumb you'll be laughing, but any help would be greatly
appreciated.
I need to evaluate an IF. That's all. I have a variable called Action
that's a string, and it can be null, "Add", "Update" etc.
I try something along the lines of:
dtml-if