15 Jul
2003
15 Jul
'03
11:31 p.m.
On Tue, 2003-07-15 at 12:56, yan zhang wrote:
Dtml method:
1)TestpID
<dtml-try> <dtml-if "pd == testPassword(name=_['name'])"> Work now <dtml-else> not works </dtml-if> </dtml-try>
Problem is: I always get the "not works" result.
First thing I'd suspect is that testPassword is returning a 1 (integer) and pd is set to '1' (string). Those are not equivalent, of course. :-) If that's not it, you may want to inspect the pieces of this comparison: -- Start TespID dump -- pd: <dtml-var pd> name: <dtml-var name> _['name']: <dtml-var "_['name']) testPassword: <dtml-var "testPassword(name=_['name'])"> -- End TespID dump -- That's crude, but it's a pretty easy way to see what's going wrong. HTH, Dylan