Re: proper way to check if a container is empty?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27134
interpreted = N
texte = I think this is clearer: [showif [NIS]=] Easier to see the blank. ml > >The best way is to do this: > > > >[showif [URL][NIS][/URL]=%5BNIS%5D] > > [math show=f]NIS=0[/math] > >[/showif] > > > >in general, because if it's possible that a variable may have user input, > >they may be putting in characters that are comparison operators (like > ><,>,=,!) that could mess up statement. This would resolve those problems. > >In general this is true, but you can take advantage of the >left-to-right parsing of the [ShowIf] context this way: > >[ShowIf =[NIS]] > >(Notice there's only one space after the ShowIf) this reads as show >if 'nothing' equals the value of the [NIS] variable > >Now I should also point out that this is very different from checking >if a variable is undefined. It's one thing to say that a variable >has been defined, and it has a value of , the empty string. It's >another thing entirely to say that a variable has not been defined at >all, and it has no value whatsoever. > >Technical Support ********************************** >Smith Micro, Internet Solutions Div | Formerly, Pacific Coast Software >16855 West Bernardo Drive | ------------------------- >Suite 380 | eCommerce (WebCatalog) >San Diego, CA 92127 | Software & Site Development >858.675.1106 | http://www.smithmicro.com >858.675.0372 (fax) ********************************** > >------------------------------------------------------------- >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 \|/ (. .) _________________________ooO_(_)_Ooo_____________________________ Mark Lacas mailto:mark@lacas.com Virtual Loft / Seattle HarborCam: http://www.loftcam.com/ SeattleStuff WebCommerce Community: http://www.seattlestuff.com/ ------------------------------------------------------------- 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: proper way to check if a container is empty? (Kenneth Grome 2000)
  2. Re: proper way to check if a container is empty? (Webcat 2000)
  3. Re: proper way to check if a container is empty? (WebDNA Support 2000)
  4. Re: proper way to check if a container is empty? (John Butler 2000)
  5. Re: proper way to check if a container is empty? (Howard Wolosky 2000)
  6. Re: proper way to check if a container is empty? (Paul Fowler 2000)
  7. proper way to check if a container is empty? (John Butler 2000)
I think this is clearer: [showif [NIS]=] Easier to see the blank. ml > >The best way is to do this: > > > >[showif [url][NIS][/URL]=%5BNIS%5D] > > [math show=f]NIS=0[/math] > >[/showif] > > > >in general, because if it's possible that a variable may have user input, > >they may be putting in characters that are comparison operators (like > ><,>,=,!) that could mess up statement. This would resolve those problems. > >In general this is true, but you can take advantage of the >left-to-right parsing of the [showif] context this way: > >[ShowIf =[NIS]] > >(Notice there's only one space after the ShowIf) this reads as show >if 'nothing' equals the value of the [NIS] variable > >Now I should also point out that this is very different from checking >if a variable is undefined. It's one thing to say that a variable >has been defined, and it has a value of , the empty string. It's >another thing entirely to say that a variable has not been defined at >all, and it has no value whatsoever. > >Technical Support ********************************** >Smith Micro, Internet Solutions Div | Formerly, Pacific Coast Software >16855 West Bernardo Drive | ------------------------- >Suite 380 | eCommerce (WebCatalog) >San Diego, CA 92127 | Software & Site Development >858.675.1106 | http://www.smithmicro.com >858.675.0372 (fax) ********************************** > >------------------------------------------------------------- >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 \|/ (. .) _________________________ooO_(_)_Ooo_____________________________ Mark Lacas mailto:mark@lacas.com Virtual Loft / Seattle HarborCam: http://www.loftcam.com/ SeattleStuff WebCommerce Community: http://www.seattlestuff.com/ ------------------------------------------------------------- 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 Webcat

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:

Hosting (2000) Credit Card Number checking (1997) WebCat2: Formulas.db question (1997) [SearchString] problem with [search] context (1997) database paths/names, and a typo (1997) Re(5): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998) Stopping bad HTML propagation ? (1997) Interfacing WebMerchant to www.fedex.com (1997) PARAMETER vs. OPERATOR (was The BUG is BACK ...) (1998) WebCat2b13MacPlugIn - More limits on [include] (1997) WebCat virtual postcard is done! Thanks for the help! (1998) errormessages.db (1997) WCS Newbie question (1997) Nitro plugin? (1998) Re[3]: 2nd WebCatalog2 Feature Request (1996) WebCatalog can't find database (1997) document contains no data (1999) Resume Catalog ? (1997) Capitalize (2000) How to verify email address (1997)