[Zope] Really dumb newbie question

2000-05-23 Thread Andy Gates
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"

Re: [Zope] Really dumb newbie question

2000-05-23 Thread Christopher J. Kucera
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]

Re: [Zope] Really dumb newbie question

2000-05-23 Thread Tony McDonald
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:

Re: [Zope] Really dumb newbie question

2000-05-23 Thread Chris Withers
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]

Re: [Zope] Really dumb newbie question

2000-05-23 Thread Stephan Richter
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:

Re: [Zope] Really dumb newbie question

2000-05-23 Thread Jason Spisak
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