Re: [WebDNA] opinions on [switch] [case]...
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103828
interpreted = N
texte = >> but anyway why do you write your cases>> so that more than one will match?>> I don't remember to tell the truth, but I think I used to use it as > a sequencing selector, such that only the first match would be shown:>> [case value^abc]three letters[/case]> [case value^ab]two letters[/case]> [case value^a]one letter[/case]>> Of course this assumes that case works with comparison operators > other than = but it's been so long since I tried it in webdna that I > honestly don't remember what comparison operators [case] works > with. I always assumed that any comparison operator that works with > [showif] also works with [case] but the docs and don't say anything > about this so maybe I'm wrong ... ?>> Sincerely,> Ken GromeI just discovered on friday that case does not work with any but "="... and posted as much on this list.Donovan said he'd put the other comparison operators (for [case]) on the list of someday-when-we-get-time-we'll-add-this-feature.------------Govindagovinda.webdnatalk@gmail.com
Associated Messages, from the most recent to the oldest:
>> but anyway why do you write your cases>> so that more than one will match?>> I don't remember to tell the truth, but I think I used to use it as > a sequencing selector, such that only the first match would be shown:>> [case value^abc]three letters[/case]> [case value^ab]two letters[/case]> [case value^a]one letter[/case]>> Of course this assumes that case works with comparison operators > other than = but it's been so long since I tried it in webdna that I > honestly don't remember what comparison operators [case] works > with. I always assumed that any comparison operator that works with >
[showif] also works with [case] but the docs and don't say anything > about this so maybe I'm wrong ... ?>> Sincerely,> Ken GromeI just discovered on friday that case does not work with any but "="... and posted as much on this list.Donovan said he'd put the other comparison operators (for [case]) on the list of someday-when-we-get-time-we'll-add-this-feature.------------Govindagovinda.webdnatalk@gmail.com
Govinda
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:
WebCatalog Technical Reference (1997)
using showpage and showcart commands (1996)
Redirect (2003)
RE: Re:Has this happened to you? (1997)
Replacing entry (1998)
[WebDNA] OT: FCKeditor (2008)
Re:Emailer and encryption (1997)
Server Freeze (1998)
RE: Generating Pages (1999)
WebDNA Solutions ... (1997)
form data submission gets truncated (1997)
database search help (2003)
Using Plug-In while running 1.6.1 (1997)
Upload (1998)
enhanced ErrorMessages.db (2002)
Nested tags count question (1997)
target=_blank and form variables (1997)
Digest for 4/18/97 (1997)
XML Woes (2004)
Weird WebCatalog problems (1998)