On Mon, 6 Mar 2000, Nolan Darilek wrote: [snip]
The problem line is <dtml-if "e">. What I was intending to do is perform the code if the search result actually returned something, but this doesn't seem to be happening. What I'd like to do is:
<dtml-if "len(e) > 0)">
But, len() doesn't seem to be defined in whichever namespace the code is being run in. I tried:
<dtml-call "global len">
before the dtml-if, but this errored out as well. Am I completely misunderstanding the problem which I'm having?
To use len, try: <dtml-if expr="_.len(e) > 0"> It is part of the _ namespace. You may also be able to achieve the same result (depending on the types of data involved) using: <dtml-if e> Note the lack of quotes.
Thanks.
You're welcome. --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:jeff@goingv.com Going Virtual, L.L.C. http://www.goingv.com/