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 beadded to the 'inherit' list for [Spawned] code:Table objectsArray objectsXML/XSL objectsTo late to get these into the 5.1e patch, but we will add them in a futurerelease/patch."But if showif and ifthen can use it, I don't see why switch couldn't.DonovanSteve 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:
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 beadded to the 'inherit' list for [Spawned] code:Table objectsArray objectsXML/XSL objectsTo late to get these into the 5.1e patch, but we will add them in a futurerelease/patch."But if showif and ifthen can use it, I don't see why switch couldn't.DonovanSteve 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:
[OT] Search Engine Tips (2003)
Authenticate (1997)
[OT] Currency feed (2005)
[WebDNA] Poll: Discussion Forum (2009)
WebCat b15 Mac plug-in (1997)
Running _every_ page through WebCat ? (1997)
two unique banners on one page (1997)
problems with 2 tags shakur (1997)
Process SSI and WebCatalog.acgi (1998)
bug? template caching and apache transfer byte log (1999)
Can I invoke an ssi plugin from within a webcat page (1997)
New Web Site Developers Database (1996)
bad idea to not use any html files, only .tpl files? (1999)
searching for items that begin with a number (2004)
wrong authentication (1998)
Separate SSL Server (1997)
gremlins? (2000)
[/application] error? (1997)
need some help with a loop (1999)
Emailer again (1997)