RE: [Zope] Re: Odd problem updating a PostgreSQL DB
16 Sep
2002
16 Sep
'02
2:38 p.m.
[ Tim Wilson]
<dtml-if our_score>our_score = <dtml-sqlvar our_score type="int" optional="true">,</dtml-if>
There is your problem, as Evan predicted. When our_score is zero, the test fails, since 0 is the value for a logical "false". Besides Evan's suggestion, you could convert to a string for the test - <dtml-if "_.str(our_score)"> But this would fail if the variable "our_score" did not exist. Really, I think you want to test for its existence, not its value, do you not? Cheers, Tom P
8603
Age (days ago)
8603
Last active (days ago)
0 comments
1 participants
participants (1)
-
Passin,Thomas B. (Tom)