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

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103828
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 I just discovered on friday that case does not work with any but "="... and posted as much on this list. Donovan said he'd put the other comparison operators (for [case]) on the list of someday-when-we-get-time-we'll-add-this-feature. ------------ Govinda govinda.webdnatalk@gmail.com 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 I just discovered on friday that case does not work with any but "="... and posted as much on this list. Donovan said he'd put the other comparison operators (for [case]) on the list of someday-when-we-get-time-we'll-add-this-feature. ------------ Govinda govinda.webdnatalk@gmail.com Govinda

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:

ConvertChars (2000) International Orders (1998) RePost: NAT and the CART (1999) EMailer - WebSTAR V - OSX - WebDNA (2003) cart info (1998) Limiting user access to .tmpl files (1997) Interfacing WebMerchant to www.fedex.com (1997) Format of Required fields error message (1997) WebCat B13 Mac CGI -- Frames question (1997) PCS Emailer's role ? (1997) [WebDNA] Integration with QuickBooks (2011) [movefile] (1999) Databases going to sleep (1998) New Command prefs ... (1997) Shipping costs question (2002) [writefile] (1997) WebCat cannot handle compatible search parameters? (1997) Max Record length restated as maybe bug (1997) Sandboxes (2004) Protect vs Authenicate (1997)