Re: [switch] platform specific bug???

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52356
interpreted = N
texte = on 8/20/2003 12:03 pm, Donovan at dbrooke@euca.us so noted... > [switch value=[var]] > [default] > Content > [/default] > [case value=1] > content1 > [/case] > [case value=2] > content2 > [/case] > [/switch] > > I am getting "Content" when hitting with value of > [var] being "[var]" > ... expected. > > However I am getting: > "Content content1" > with value of > [var] being "1" > > Default has always worked (not shown when another case value > is present). I get the same thing with Apache under OS X. It looks like order matters. Put [default] last, after all the other [case] statements. That fixes it up. Rob Marquardt Designer/Resident Wirehead Toast Design 800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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] platform specific bug??? ( John Peacock 2003)
  2. Re: [switch] platform specific bug??? ( Rob Marquardt 2003)
  3. [switch] platform specific bug??? ( Donovan 2003)
on 8/20/2003 12:03 pm, Donovan at dbrooke@euca.us so noted... > [switch value=[var]] > [default] > Content > [/default] > [case value=1] > content1 > [/case] > [case value=2] > content2 > [/case] > [/switch] > > I am getting "Content" when hitting with value of > [var] being "[var]" > ... expected. > > However I am getting: > "Content content1" > with value of > [var] being "1" > > Default has always worked (not shown when another case value > is present). I get the same thing with Apache under OS X. It looks like order matters. Put [default] last, after all the other [case] statements. That fixes it up. Rob Marquardt Designer/Resident Wirehead Toast Design 800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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/ Rob Marquardt

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:

http://www.smithmicro.com/WebDNAReference/ current? (2000) About the Allow 'Absolute Path' Prefix (2002) Need relative path explanation (1997) A little help on e-mail (HELP!!! :-) ) (1998) emailer error -108 (1997) test (2001) RedHat 7.0 (2001) Help! WebMerchant store suddenly won't process orders... (2001) Re[2]: Next X hits (1996) WC2b15 File Corruption (1997) Mac Programs (1998) [Summary] re: Emailer setup (1997) Running _every_ page through WebCat ? (1997) Announce: Bug fix talk list (1999) Bit off subject -- Faxing orders (1997) WebCat2b15MacPlugin - showing [math] (1997) Reload of the shoppingcart.tmpl page (1999) OT: Need (a tiny bit) of help setting up MySQL (2000) NT lockup cont'd (1998) Encryption (2000)