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:

Date subtraction (2002) WebCat2.0b15-to many nested [xx] tags (1997) RE: Re:Signal Raised (1997) Emailer help....! (1997) select multiple (1997) Locking up with WebCatalog... (1997) [Listfiles] vs Netfinder (1997) Internet Advancement (2003) seeminly simple... but beyond my grasp :) (2000) Multiple 'Users.db' files not possible (1997) Webcat/Webmerchant (1998) Extended [ConvertChars] (1997) [WebDNA] Finding variable that holds "DocumentRoot" directory (2010) WebCatalog for Postcards ? (1997) [WebDNA] Mixed Content (2009) Adding Multiple Items (1999) Grouping search fields, etc. (1997) RE: PIXO support (1997) Summing fields (1997) MAC FINDER (2001)