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 are always safe. In your example, the only time the test should be true is if the field or variable [aaa] contains the value [Blank].John Peacock____________________Reply Separator____________________ Subject: Re: when is failing to [URL]ize values in a comparison risky Author: (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 the idea.-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:

    
  1. Re[2]: when is failing to [URL]ize values in a comparison ri (Kenneth Grome 1999)
  2. Re[2]: when is failing to [URL]ize values in a comparison ri (jpeacock@univpress.com 1999)
  3. Re[2]: when is failing to [URL]ize values in a comparison ri (jpeacock@univpress.com 1999)
  4. Re[2]: when is failing to [URL]ize values in a comparison ri (jpeacock@univpress.com 1999)
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 are always safe. In your example, the only time the test should be true is if the field or variable [aaa] contains the value [Blank].John Peacock____________________Reply Separator____________________ Subject: Re: when is failing to [url]ize values in a comparison risky Author: (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 the idea.-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:

Emailer again (1997) New York City sales tax database needed (1997) [WebDNA] [BULK] strange triggers.db occurrence??? (2012) shown next / show prev (1998) WebMerchant 1.6 and https (1997) redirect from the errorsMessages.db entry (1997) Ongoing group search problems ... (1997) Renaming textA (1998) dos performance (1998) Replace context problem ... (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Digger URLs ... (2004) WebCatalog/Mac 2.1b2 New Features (1997) can you see what is wrong here? (2002) Webstar 1.3.1 PPC (1997) WebCat2 several catalogs? (1997) Simple Database close connection (2001) Re:trouble (1997) Max Record length (1997) [WebDNA] ubuntu permissions can't append db (2019)