Re: [WebDNA] opinions on [switch] [case]...

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103827
interpreted = N
texte = > but anyway why do you write your cases > so that more than one will match? I don't remember to tell the truth, but I think I used to use it as a sequencing selector, such that only the first match would be shown: [case value^abc]three letters[/case] [case value^ab]two letters[/case] [case value^a]one letter[/case] Of course this assumes that case works with comparison operators other than = but it's been so long since I tried it in webdna that I honestly don't remember what comparison operators [case] works with. I always assumed that any comparison operator that works with [showif] also works with [case] but the docs and don't say anything about this so maybe I'm wrong ... ? Sincerely, Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] opinions on [switch] [case]... (Donovan Brooke 2009)
  2. Re: [WebDNA] opinions on [switch] [case]... (Kenneth Grome 2009)
  3. Re: [WebDNA] opinions on [switch] [case]... (Govinda 2009)
  4. Re: [WebDNA] opinions on [switch] [case]... (Kenneth Grome 2009)
  5. [WebDNA] opinions on [switch] [case]... (Govinda 2009)
  6. [WebDNA] opinions on [switch] [case]... (Govinda 2009)
> but anyway why do you write your cases > so that more than one will match? I don't remember to tell the truth, but I think I used to use it as a sequencing selector, such that only the first match would be shown: [case value^abc]three letters[/case] [case value^ab]two letters[/case] [case value^a]one letter[/case] Of course this assumes that case works with comparison operators other than = but it's been so long since I tried it in webdna that I honestly don't remember what comparison operators [case] works with. I always assumed that any comparison operator that works with [showif] also works with [case] but the docs and don't say anything about this so maybe I'm wrong ... ? Sincerely, Ken Grome 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:

Using Plug-In while running 1.6.1 (1997) Post size Limit? (1998) close to search (2001) Customizing WebDelivery.html (1998) creating a ShipCosts database (1997) [math] are you there? (1999) Occasional crashes with $remove (1997) Mac Scheduling (1998) Storebuilder, Smith-Micro Tech Support (2000) Online reference (1997) Sendmail (2000) searching for items that begin with a number (2004) searching multiple databases in single search (1997) RE: [input] questions (1997) WebCat2 Append problem (B14Macacgi) (1997) Purchased cart being overwritten - still !?? (1997) MacOS X 10.1 Upgrade Error (2001) emailer (1997) using showpage and showcart commands (1996) [WebDNA] CDATA in XML = blank value (2015)