Re: [WebDNA] lists opinion

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103820
interpreted = N
texte = > > Why not change switch/case so that it only displays the first > > matching case? It displays all matching cases right now, and that's > > why I have never used it -- because I want it to display only the > > first matching case just like similar functions in other languages. > > > IIRC, switch case in PHP matches any all cases after the first > matching case.. until/unless it hits a break; statement. So maybe all webdna needs is a break statement which it currently does not have. Actually it has one, but it only works for [loop] -- not for [switch]. Sincerely, Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] lists opinion - [listwords] delimiter change (Govinda 2009)
  2. Re: [WebDNA] lists opinion (Donovan Brooke 2009)
  3. Re: [WebDNA] lists opinion (Govinda 2009)
  4. Re: [WebDNA] lists opinion (Dan Strong 2009)
  5. Re: [WebDNA] lists opinion (Brian Fries 2009)
  6. RE: [WebDNA] lists opinion ("Terry Nair" 2009)
  7. Re: [WebDNA] lists opinion ("Terry Wilson" 2009)
  8. Re: [WebDNA] lists opinion (Kenneth Grome 2009)
  9. Re: [WebDNA] lists opinion (Govinda 2009)
  10. Re: [WebDNA] lists opinion (Kenneth Grome 2009)
  11. Re: [WebDNA] lists opinion (Govinda 2009)
  12. Re: [WebDNA] lists opinion (Donovan Brooke 2009)
  13. Re: [WebDNA] lists opinion - [listwords] delimiter change (Brian Fries 2009)
  14. Re: [WebDNA] lists opinion - [listwords] delimiter change (Donovan Brooke 2009)
  15. Re: [WebDNA] lists opinion (Brian Fries 2009)
  16. Re: [WebDNA] lists opinion (Govinda 2009)
  17. [WebDNA] lists opinion (Donovan Brooke 2009)
> > Why not change switch/case so that it only displays the first > > matching case? It displays all matching cases right now, and that's > > why I have never used it -- because I want it to display only the > > first matching case just like similar functions in other languages. > > > IIRC, switch case in PHP matches any all cases after the first > matching case.. until/unless it hits a break; statement. So maybe all webdna needs is a break statement which it currently does not have. Actually it has one, but it only works for [loop] -- not for [switch]. 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:

WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Sorting by date (1997) Intermitent problem using [referrer] (1997) Sku numbers (1997) GoLive CyberStudio 1.0.1 (1997) Re1000001: Setting up shop (1997) WebCatalog dying in WebTen Revisited (1998) Bug Report, maybe (1997) New Mac Public Beta Available (1997) F3 crashing server (1997) TaxTotal Problem (1997) Search (1997) iis 4.0 (1997) NetCloak as Emailer substitute? (1999) Setting up WebCatalog with Retail Pro data (1996) HELP WITH DATES (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Online reference (1997) SQL Madness (2005) Navigator 4.01 (1997)