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:
> > 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)