Feature request
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21632
interpreted = N
texte = I have seen requests for an syntax along the lines of [if] blah [else] blah [/if]which would be nice, but what I'd REALLY like to see is a SWITCH/CASEstatement, something like this: [SWITCH {expression}] [CASE {value1}] blah [/CASE] [CASE {value2}] blah [/CASE] [CASE {value3}] blah [/CASE] ... [DEFAULT] blah [/DEFAULT] [/SWITCH]So, each [CASE] would be the equivalent of [SHOWIF {expression}={valueX}]and the [DEFAULT] context would be shown if {expression} doesn't equal anyof the {values} specified in the [CASE] contexts.The current workarounds for the lack of a SWITCH make for complicated andugly code that is difficult to debug and update.Brian<=- Brian C. Fries, BrainScan Software -=><=- Macintosh, Internet and Multimedia -=><=- Development and Consulting -=><=- brainscn@psyber.com -=><=- http://www.psyber.com/~brainscn -=><=- http://www.extremeaudio.com -=><=- http://www.carboload.com (coming soon) -=>
Associated Messages, from the most recent to the oldest:
I have seen requests for an syntax along the lines of
[if] blah [else] blah [/if]which would be nice, but what I'd REALLY like to see is a SWITCH/CASEstatement, something like this: [SWITCH {expression}] [CASE {value1}] blah [/CASE] [CASE {value2}] blah [/CASE] [CASE {value3}] blah [/CASE] ... [DEFAULT] blah [/DEFAULT] [/SWITCH]So, each [CASE] would be the equivalent of [SHOWIF {expression}={valueX}]and the [DEFAULT] context would be shown if {expression} doesn't equal anyof the {values} specified in the [CASE] contexts.The current workarounds for the lack of a SWITCH make for complicated andugly code that is difficult to debug and update.Brian<=- Brian C. Fries, BrainScan Software -=><=- Macintosh, Internet and Multimedia -=><=- Development and Consulting -=><=- brainscn@psyber.com -=><=- http://www.psyber.com/~brainscn -=><=- http://www.extremeaudio.com -=><=- http://www.carboload.com (coming soon) -=>
Brian Fries
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:
WC 2.0 frames feature (1997)
Showing unopened cart (1997)
Avery 5160 Mailing Labels (2003)
WebCatalog for Postcards ? (1997)
grep question - how to strip spaces from the beginning of a (2002)
Strange intermittent WebDNA problems Workaround (2008)
New Site Announcement (1998)
Speed questions (1998)
RE: WebCatalog2 for NT Beta Request (1997)
webmerch and serials - almost there (1997)
Misunderstanding?? (1997)
WebCatalog on Solaris? (2000)
[WebDNA] Best practice re: password storage (2013)
Creating main- and sub-category search (1997)
problems with 2 tags (1997)
Email (1998)
WebCatalog Features (1997)
OLD ORDERS (1998)
Shopping carts and reloading pages (1997)
[/application] error? (1997)