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:

Diners Club card problems (1999) More on the email templates (1997) name of file (2002) Emailer (1997) Thanks Grant (1997) Shownext and search context (2000) [WriteFile] problems (1997) Postprocessing CCs (2000) RE: Sorting error (1997) Pithy questions on webcommerce & siteedit (1997) multiple search commands (1997) Random Number Generator works for Ranges of Numbers (1997) PCS Frames-Default page is solution! (1997) Here we go again...WebDNA - SQL- Stored Procedures (2006) Country & Ship-to address & other fields ? (1997) Max Record length restated as maybe bug (1997) [WebDNA] filter out the exclaimation point (2017) Projects & Contractors (1997) [Sum] function? (1997) How true is this? (1999)