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:

RE: Cart Template (1997) Unix line endings (2003) Hiding Email Addresses (2003) Still trying to email... (1998) verify online (1997) Displaying photo attached to first record (1997) Unable to view next 101-200 (1997) [WebDNA] Quick Date Question (2008) Question (2000) Forwarding Orders Via Email (1998) Shared databases (2003) purchase.log file (1997) See [shell]s (2008) Sorting Round 2 plus (1998) Unable to view next 101-200 (1997) (2004) form data submission gets truncated (1997) Some ThankYou page problems (1997) FlushDatabase Suggestion (1998) ShowNext for method=POST (1997)