Re: when is failing to [URL]ize values in a comparison risky?
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25361
interpreted = N
texte = >John,>>How about when comparing to *nothing*?>>[showif [URL][aaa][/URL]=] some code [/showif]>>will evaluate to true (show the result of some code) even if [aaa] has no value?>I thought that when I tried this one time, webcat was resolving the above to [showif>%5baaa%5d=] some code [/showif], so the code never executed, which was not the idea.Your example above is 'false' when [aaa] has a pre-defined value that's not 'blank'. It is also 'false' when [aaa] does not have a pre-defined value. In fact, it is 'true' only when [aaa] has a pre-defined value that is 'blank' or 'null'.================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
>John,>>How about when comparing to *nothing*?>>[showif [url][aaa][/URL]=] some code [/showif]>>will evaluate to true (show the result of some code) even if [aaa] has no value?>I thought that when I tried this one time, webcat was resolving the above to [showif>%5baaa%5d=] some code [/showif], so the code never executed, which was not the idea.Your example above is 'false' when [aaa] has a pre-defined value that's not 'blank'. It is also 'false' when [aaa] does not have a pre-defined value. In fact, it is 'true' only when [aaa] has a pre-defined value that is 'blank' or 'null'.================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[Sum] function? (1997)
text size limitation (1997)
2.1b3 --> way slow (1997)
Exclamation point (1997)
New Guestbook Source (1997)
[WebDNA] WebDNA 8.6 announced - New features (2018)
Printing a final order (1997)
[WebDNA] lighttpd config (2012)
[WriteFile] problems (1997)
What is WebDNA (1997)
posting problems + Webcat 3.0.7 available - did anyone know? (2000)
To Err or Not Custom Error (1999)
Numbers only code (2000)
NT lockup (1998)
Adding new customer numbers sequentially (1997)
Error Messages Returned to User (1997)
include bug????? (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Simple Database close connection (2001)
Emailer Problem (1998)