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:

Secure Web Server (1999) SKU (1997) PCS Emailer's role ? (1997) Re:No Data (1997) Setting up shop (1997) presetting a [math] var not working (2000) Ken's Data Manager (was dbQuickView 2.0) (2005) Username for Admin Group (1997) Re:2nd WebCatalog2 Feature Request (1996) RE: Formulas.db + Users.db (1997) corrupted jpgs (2003) Search/sort in URL Was: GuestBook example (1997) File not found error message (1998) Extended [ConvertChars] (1997) sendmail and accented characters (1998) Formulas.db / Quantity Discount problem (1998) Tracking System? (1997) A quickie question (1997) taxrate - off by 1 cent (1997) [WebDNA] [createdate] displays today's date on Ubuntu 14.04 / (2014)