Re: Case statement

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53148
interpreted = N
texte = A couple of things.. try [url]ing your variable. Also, is your function name assigned correctly? I wouldn't think this is the case.. but Scott recently wrote.. " Yes. Actually, there are a number of new variable types that need to be added to the 'inherit' list for [Spawned] code: Table objects Array objects XML/XSL objects To late to get these into the 5.1e patch, but we will add them in a future release/patch. " But if showif and ifthen can use it, I don't see why switch couldn't. Donovan Steve Craig wrote: > > 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/ -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design P.O. Box 260153 Madison, WI 53726-0153 PH:> 1.608.592.3567 email:> dbrooke@euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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)
A couple of things.. try [url]ing your variable. Also, is your function name assigned correctly? I wouldn't think this is the case.. but Scott recently wrote.. " Yes. Actually, there are a number of new variable types that need to be added to the 'inherit' list for [Spawned] code: Table objects Array objects XML/XSL objects To late to get these into the 5.1e patch, but we will add them in a future release/patch. " But if showif and ifthen can use it, I don't see why switch couldn't. Donovan Steve Craig wrote: > > 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/ -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design P.O. Box 260153 Madison, WI 53726-0153 PH:> 1.608.592.3567 email:> dbrooke@euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ Donovan

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:

Limitations on fields? Server is crashing (1997) Re:FYI: Error message (1996) Protect vs Authenicate (1997) [defined]ish (1997) all records returned. (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) How To question on setting up downloads (1997) date math (2005) Date Formats (1997) Feature req. (2002) OT: Please set your computer's clock (1997) Fed Ex Rate Charts (2003) Not really WebCat (1997) [format 40s]text[/format] doesn't work (1997) WCS Newbie question (1997) [WebDNA] Instructions for install on CentOS 5.7? (2011) [append] and SSL (1997) URGENT: WebCatalog 2.0 (1998) carriage returns in data (1997) Problems with command=replace in realm (2000)