Re: quotation marks needed?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33854
interpreted = N
texte = >I tried this: >[If [var1]=[var2]].... > >and it didn't work; I've displayed the two values and even when they are >identical, the if does not say so; > >this worked: >[If [var1]=[var2]]....You've run into a slight syntax difference between [ShowIf] and [If]. WebCatalog 4.0 introduced a new context called [If] which works much like a C-language 'if' statement. To that end, [If] requires that you put quotes around strings so that it can distinguish text from numbers, parentheses and other comparison operators.[ShowIf], on the other hand, retains the original syntax (for obvious legacy reasons), and does not require quotes. The correct syntax is all documented in your online docs under the context headings [If] and [ShowIf].Technical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: quotation marks needed? (Kenneth Grome 2000)
  2. Re: quotation marks needed? (blo 2000)
  3. Re: quotation marks needed? (blo 2000)
  4. Re: quotation marks needed? (WebDNA Support 2000)
  5. Re: quotation marks needed? (John Peacock 2000)
  6. quotation marks needed? (blo 2000)
>I tried this: >[If [var1]=[var2]].... > >and it didn't work; I've displayed the two values and even when they are >identical, the if does not say so; > >this worked: >[If [var1]=[var2]]....You've run into a slight syntax difference between [showif] and [if]. WebCatalog 4.0 introduced a new context called [if] which works much like a C-language 'if' statement. To that end, [if] requires that you put quotes around strings so that it can distinguish text from numbers, parentheses and other comparison operators.[showif], on the other hand, retains the original syntax (for obvious legacy reasons), and does not require quotes. The correct syntax is all documented in your online docs under the context headings [if] and [showif].Technical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ WebDNA Support

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:

Math with Time (1997) [WebDNA] inputed text getting scrambled up in DB (2012) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Error - Search / Showif (2000) [Listfiles] vs Netfinder (1997) Candle Light Vigil (2001) F*** you (1998) How to display images? (2002) re: Large databases in WebCat (1997) RE: format problem on NT? (1997) WebCatalog Upgrade Pricing? (1997) [OT] FTP client (2003) question: search return in order (1997) japanese characters (1997) How can I Add several Items into the cart at once? (1997) Search in 2 or more catalogs (1997) Pulldown Menu (2000) Upgrading old WebCat Database Files (1997) WebCatalog/Mac 2.1b2 New Features (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997)