Case statement

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53145
interpreted = N
texte = Hi Brain fade time of day again I'm afraid. Can someone tell me what I'm doing wrong with this code? I am trying to call one of three functions depending what the end of a domain name is. [text show=T]myDomain=[Middle StartAfter=.&EndBefore=][DOMAIN][/middle][/text] [Switch value=[myDomain]] [Case value=com] [FuncNameA domain=[domain]] [/Case] [Case value=net] [FuncNameB domain=[domain]] [/Case] [Case value=org] [FuncNameC domain=[domain]] [/Case] [Default] Whatever I want in here [/Default] [/Switch] If I send this page 'page.tpl?domain=asylumweb.com' all that seems to happen is that it returns [FuncNameA domain=asylumweb.com] It doesn't seem to trigger the function. Can you do this within a [case]? Hope this makes sense. ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.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: Case statement ( Steve Craig 2003)
  2. Re: Case statement ( Grant Hulbert 2003)
  3. Re: Case statement ( Donovan 2003)
  4. Re: Case statement ( Steve Craig 2003)
  5. Re: Case statement ( Steve Craig 2003)
  6. Re: Case statement ( John Peacock 2003)
  7. Re: Case statement ( Donovan 2003)
  8. Re: Case statement ( Donovan 2003)
  9. Re: Case statement ( Steve Craig 2003)
  10. Re: Case statement ( "Andrew Simpson" 2003)
  11. Case statement ( Steve Craig 2003)
  12. issues with nested case statements? (Andrew Simpson 2001)
Hi Brain fade time of day again I'm afraid. Can someone tell me what I'm doing wrong with this code? I am trying to call one of three functions depending what the end of a domain name is. [text show=T]myDomain=[Middle StartAfter=.&EndBefore=][DOMAIN][/middle][/text] [Switch value=[myDomain]] [Case value=com] [FuncNameA domain=[domain]] [/Case] [Case value=net] [FuncNameB domain=[domain]] [/Case] [Case value=org] [FuncNameC domain=[domain]] [/Case] [Default] Whatever I want in here [/Default] [/Switch] If I send this page 'page.tpl?domain=asylumweb.com' all that seems to happen is that it returns [FuncNameA domain=asylumweb.com] It doesn't seem to trigger the function. Can you do this within a [case]? Hope this makes sense. ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.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/ Steve Craig

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:

New Mac Public Beta Available (1997) Mult-File Upload w/ Web Star (2000) Execute Applescript (1997) WebCat and HTML/OS (2001) SKU lookup (1997) Where's Cart Created ? (1997) Authorize.net? (2003) Word search (1997) SiteGuard Admin Feature ? (1997) Busy WebCatalog (2000) 2nd WebCatalog2 Feature Request (1996) Pls Remove me from all Lists (1998) Problems passing [SKU] with $Replace in 2.0 (1997) Re:no [search] with NT (1997) insecuretextvars preference doesn't work (2000) Searching in a range... (1998) [ot] iBook vs. 12" PB (2004) Bug Report, maybe (1997) Replace Statement (1997) [OT] SMTP Server for W2000 (2002)