Re[2]: when is failing to [URL]ize values in a comparison ri
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25370
interpreted = N
texte = The appropriate way to test if a variable is not defined is to use the[Raw][/Raw] tags like this:[ShowIf [aaa]=[Raw][aaa][/Raw]]Shown only if [aaa] has no value[/ShowIf]Nonetheless, if you surrounded _BOTH_SIDES_ of the test with [URL], you arealways safe. In your example, the only time the test should be true is if thefield or variable [aaa] contains the value [Blank].John Peacock____________________Reply Separator____________________Subject: Re: when is failing to [URL]ize values in a comparison riskyAuthor:
(WebCatalog Talk)Date: 12/9/99 10:32 PMJohn,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 theidea.-John-------------------------------------------------------------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:
The appropriate way to test if a variable is not defined is to use the[raw][/Raw] tags like this:[ShowIf [aaa]=[raw][aaa][/Raw]]Shown only if [aaa] has no value[/ShowIf]Nonetheless, if you surrounded _BOTH_SIDES_ of the test with [url], you arealways safe. In your example, the only time the test should be true is if thefield or variable [aaa] contains the value [Blank].John Peacock____________________Reply Separator____________________Subject: Re: when is failing to [url]ize values in a comparison riskyAuthor: (WebCatalog Talk)Date: 12/9/99 10:32 PMJohn,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 theidea.-John-------------------------------------------------------------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
jpeacock@univpress.com
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:
Running _every_ page through WebCat ? (1997)
how to set a new cart number periodically (1999)
All choices on IE different than Netscape (1997)
[BoldWords] WebCat.acgib15Mac (1997)
help testing quicktime delivery (1997)
PIXO support (1997)
!!!!!!!!!!String Search!!!!!!!!!!!!!!!!!! (2001)
How to Sort Summ data ? (1997)
Why is deleting so slow? (2002)
multi-paragraph fields (1997)
Using Plug-In while running 1.6.1 (1997)
NT [delete] - duh nevermind. (1998)
[ConvertChars] problem (1997)
SQL statements (2002)
Re2: frames & carts (1997)
Interfacing WebMerchant to www.fedex.com (1997)
HELP!!! (1998)
[format xs] freeze (1997)
TCP Connect (1999)
Sort Order on a page search (1997)