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:

WebCat2 - many [carts] on one template page? (1997) multi-paragraph fields (1997) [Webcat 2]Next (1997) WebCat editing, SiteGuard & SiteEdit (1997) WebCatalog NT beta 18 now available (1997) three cart questions (1997) multiple databases (1997) WebCatb15 Mac CGI -- [purchase] (1997) OT OSX Login Problem (2006) Lost Records in Database (2001) Search bug. Help (2002) Cart Question (1998) Problems w/ heavy use of cart header fields? (1998) Universal root for WC errors? (1997) [MoveFile] (2000) [OT] HTML EMAIL program wanted (1999) How did *you* learn Web Catalog? (2000) Max Record length restated as maybe bug (1997) emailer (1997) Email within tmpl ? (1997)