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 Consultant 808-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:

    
  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, > >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 Consultant 808-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:

Interesting speed comparison .. (2003) [WebDNA] listwords words=GastlyAmount (2009) A quickie question (1997) possible, WebCat2.0 and checkboxes-restated (1997) java chat (2002) Refering page (1998) Newbie questions (2000) [BoldWords] WebCat.acgib15Mac (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Typhoon Rev. and PCS store problems (1999) WebDNA HitLogger available (was Signal Raised Error) (1997) TCP Connect (2000) Item options w/ price adjustment (1997) $Replace with [founditems] (1997) Encrypt (1999) Shipping Calc - Help please (1998) Simple Page (2000) [append] and SSL (1997) [OT] Internet connection problem (2003) nesting limits? (1998)