[Zope] simple dtml-if question

2000-07-26 Thread joel grimes
How do I do this? I have a table with a field called SerialNumber. I want to test it for null and return a non-breaking space if it's null. Here's what I tried: dtml-if "SerialNumber = null"nbsp; dtml-elsedtml-var SerialNumber /dtml-if Doesn't work (be nice-I'm new). I've tried various

Re: [Zope] simple dtml-if question

2000-07-26 Thread Nick Garcia
joel grimes wrote: How do I do this? I have a table with a field called SerialNumber. I want to test it for null and return a non-breaking space if it's null. Here's what I tried: dtml-if "SerialNumber = null"nbsp; dtml-elsedtml-var SerialNumber /dtml-if dtml-var SerialNumber

[Zope] SV: [Zope] simple dtml-if question

2000-07-26 Thread peter be
Message - From: joel grimes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 26, 2000 6:14 PM Subject: [Zope] simple dtml-if question How do I do this? I have a table with a field called SerialNumber. I want to test it for null and return a non-breaking space if it's null

[Zope] simple dtml-if question

2000-07-26 Thread joel grimes
If the SerialNumber is taken from a ZSQL method, shouldn't you been able to show it without testing its content. Such as: dtml-var SerialNumbernbsp; Those rows that have something other than 'null' would be shown together with a nbsp;. Well, THAT never occurred to me. Somethimes the easiest

[Zope] Simple DTML-IN question

2000-07-19 Thread Terry Babbey
Everytime I think I am beginning to understand I try to do something new and wham! It won't work for me. I have a dtml-document that I have a list of courses for a college program. I would like to list the courses one item at a time checking the 8th character to see if it is a '-' so I know if

Re: [Zope] Simple DTML-IN question

2000-07-19 Thread Andy McKay
dtml-let item=sequence-item dtml-if "item[7] = '-'" /dtml-if /dtml-let /dtml-in - Original Message - From: "Terry Babbey" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 19, 2000 7:59 AM Subject: [Zope] Simple DTML-IN question Ev