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 = 25406
interpreted = N
texte = John, so in this example-jpeacock@univpress.com wrote:> 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]we are now properly checking for a not-yet-defined variable, but we lost the [URL] context! So it seems we are back to my initial question- (using the above example) is there ever a condition under which webcat will crash trying to evaluate the above (since we are not using the [URL] context) ??> > > 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].or do you mean to do it like this-[ShowIf [URL][aaa][/URL]=[URL][Raw][aaa][/Raw][/URL]]Shown only if [aaa] has no value[/ShowIf]?? ------------------------------------------------------------- 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: when is failing to [URL]ize values in a comparison risky? (John Butler 1999)
  2. Re: when is failing to [URL]ize values in a comparison risky? (Kenneth Grome 1999)
  3. Re: when is failing to [URL]ize values in a comparison risky? (John Butler 1999)
  4. Re: when is failing to [URL]ize values in a comparison risky? (Kenneth Grome 1999)
  5. Re: when is failing to [URL]ize values in a comparison risky? (John Butler 1999)
  6. Re: when is failing to [URL]ize values in a comparison risky? (jpeacock@univpress.com 1999)
  7. when is failing to [URL]ize values in a comparison risky? (John Butler 1999)
  8. when is failing to [URL]ize values in a comparison risky? (John Butler 1999)
John, so in this example-jpeacock@univpress.com wrote:> 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]we are now properly checking for a not-yet-defined variable, but we lost the [url] context! So it seems we are back to my initial question- (using the above example) is there ever a condition under which webcat will crash trying to evaluate the above (since we are not using the [url] context) ??> > > 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].or do you mean to do it like this-[ShowIf [url][aaa][/URL]=[url][raw][aaa][/Raw][/URL]]Shown only if [aaa] has no value[/ShowIf]?? ------------------------------------------------------------- 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 John Butler

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:

UPS (2003) New servers and new inline cache (1997) webcat- multiple selection in input field (1997) DBEdit (new version) available (2003) [ShowNext] feature in 2.0 (1997) [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (2010) search across ip/domain addresses? (1998) Problem decrypting encrypted data on different machine (2000) OK to delete records while finding them? (2000) Install on RedHat ES 4 (2006) WebCat2b12 - nesting [tags] (1997) OT: Thawte SSL on Mac OS X Server (2005) Buying sans cart (1997) [WebDNA] [OT] Free Windows FTP client recommendations (2009) Trigger alternatives please ... (2004) Practice runs ? (1997) How to search dbs across virtual hosts for same domain? (2003) autocommit problem (1998) Show shoppingcart after remove last item (1997) WebCatalog 2.0 b 15 mac (1997)