Switch Case Context

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58537
interpreted = N
texte = Is there anyway to get the switch/case context to work like this (pseudo-code follows): [switch value=X] [CASE value>10] A [/CASE] [CASE value>5] B [/CASE] [CASE value=4] C [/CASE] [CASE value=TEXT] TEXT [/CASE] [DEFAULT] D [/DEFAULT] The idea is that the switch-case terminates on the first match. This can be done with nested ifs but it's not fun to read. Thanks, Bill ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Switch Case Context ( Rob Marquardt 2004)
  2. Re: Switch Case Context ( John Peacock 2004)
  3. Switch Case Context ( devaulw@onebox.com 2004)
Is there anyway to get the switch/case context to work like this (pseudo-code follows): [switch value=X] [CASE value>10] A [/CASE] [CASE value>5] B [/CASE] [CASE value=4] C [/CASE] [CASE value=TEXT] TEXT [/CASE] [DEFAULT] D [/DEFAULT] The idea is that the switch-case terminates on the first match. This can be done with nested ifs but it's not fun to read. Thanks, Bill ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ devaulw@onebox.com

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:

Country & Ship-to address & other fields ? (1997) [SHOWIF]s and empty arguments (1997) The USArea® Network web site ... (1997) email (1998) [OT] Scrolling Text for News (2003) WebCat2 - Getting to the browser's username/password data (1997) WebDNA Grep help wanted (2004) free zip codes database (1999) 100 + Users updating database (2002) RE: [sendmail]- bcc? (1998) Purchased cart being overwritten - still !?? (1997) shownext (1997) autosensing lanague selection (1997) Execute Applescript (1997) A question on sub-categories (1997) Where's Cart Created ? (1997) authentication box not kicking in (2001) [WebDNA] multi-file upload (2016) Copyright that puppy (1998) problems with 2 tags (1997)