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