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:
exclusive db lock with webcat-3 ? (2000)
REPOST: How do _you_ back up your db? (2000)
Major Security Hole IIS NT (1998)
WebCat & WebTen (1997)
[append] (1997)
[WebDNA] [OT] BBEdit Glossary (2012)
[WebDNA] Apache 2 Error Log Entry (2009)
Database Updates (1997)
[WebDNA] Email not going out, error 554 (2016)
Ok here is a question? (1997)
Develop on Mac - Serve on Linux (2002)
Share Snippet? (1999)
synching databases on multiple servers (1997)
Web Delivery First Time Setup Trouble (2000)
Problems getting parameters passed into email. (1997)
[include ...] behavior (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
Webcat Manual and TeaRoom Examples Uses Different Examples. (1997)
Today's suggestions - 2 More (1998)
Emailer Set Up (1997)