Re: [WebDNA] [switch] [case] only works with "=" comparisons.. true?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103796
interpreted = N
texte = Govinda wrote: > From my quick tests it seems that > [switch...] > [case value^1].. > or > [case value~1].. > > are NOT valid syntax.. > (gives an error) > > i.e. it MUST be > > [case value=1].. > > > Darn! > I can work around of course.. but the wider range of valid comparison > chars sure would have been nice! > > Just posting here to be sure my assumptions are correct (that [switch] > [case] *cannot* use the 'contains' or 'begins with' comparison char.. > agreed?) > > ------------ > Govinda > govinda.webdnatalk@gmail.com yep... it's not like the PHP switch... but I agree it would be nice. I'll put that on the list to look at.. but it will be down in the priorities a ways. Donovan -- Donovan Brooke WebDNA Software Corporation http://www.webdna.us **[Square Bracket Utopia]** Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [switch] [case] only works with "=" comparisons.. true? (Govinda 2009)
  2. Re: [WebDNA] [switch] [case] only works with "=" comparisons.. true? (Donovan Brooke 2009)
  3. [WebDNA] [switch] [case] only works with "=" comparisons.. true? (Govinda 2009)
Govinda wrote: > From my quick tests it seems that > [switch...] > [case value^1].. > or > [case value~1].. > > are NOT valid syntax.. > (gives an error) > > i.e. it MUST be > > [case value=1].. > > > Darn! > I can work around of course.. but the wider range of valid comparison > chars sure would have been nice! > > Just posting here to be sure my assumptions are correct (that [switch] > [case] *cannot* use the 'contains' or 'begins with' comparison char.. > agreed?) > > ------------ > Govinda > govinda.webdnatalk@gmail.com yep... it's not like the PHP switch... but I agree it would be nice. I'll put that on the list to look at.. but it will be down in the priorities a ways. Donovan -- Donovan Brooke WebDNA Software Corporation http://www.webdna.us **[Square Bracket Utopia]** Donovan Brooke

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:

RAM problems, [appendfile] problems (1998) [OT] Might be of interest... (2006) Re:Call For Entry: Third Annual Business on The Internet (BOTI) Awards (1999) Banners (1997) Nested tags count question (1997) Stop page auto. refreshing (2004) Webcat2, WebCommerce, Mod 10 etc. (1997) Why is my easy [AddLineItems] NOT working?? MORE (2000) SKU (1997) Email and name capture (1999) I've been thinking (2002) WebCatalog 3.0.8 is on FTP... (2000) New Documentation For WebCatalog 1.6 (1996) External Images (1998) Christmas countdown (1998) emailer (1997) Listserver problem (1997) Multiple catalog databases and showcart (1997) Word search (1997) Redirect and passing more than one variable... (2002)