Re: Undeclared variables
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57483
interpreted = N
texte = [showif [defined][var][/defined]=T][showif [def][var][/def]=T]or [showif [defined var=var1&var2&var2]=T]for a list of variables.Is this something that would work well as a function?-----Original Message-----From: charles kline
Sent: Fri, 23 Apr 2004 14:08:50 -0400To: (WebDNA Talk)Subject: Re: Undeclared variablesWould be cool to have...[showif [isset var=somevar]=T][/showif]On Apr 23, 2004, at 1:29 PM, Terry Wilson wrote:> Is there a more elegant way to do this:>> [showif [variable]=[raw][variable][/raw]]variable=some default > value[/showif]>> Seems like using [raw] is a pretty kludgey way of determining if a > variable is undefined. I've been doing this forever, and maybe in ver > 6 there's a better way now?>>> -------------------------------------------------------------> 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/>-------------------------------------------------------------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/-------------------------------------------------------------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:
[showif [defined][var][/defined]=T][showif [def][var][/def]=T]or [showif [defined var=var1&var2&var2]=T]for a list of variables.Is this something that would work well as a function?-----Original Message-----From: charles kline Sent: Fri, 23 Apr 2004 14:08:50 -0400To: (WebDNA Talk)Subject: Re: Undeclared variablesWould be cool to have...[showif [isset var=somevar]=T][/showif]On Apr 23, 2004, at 1:29 PM, Terry Wilson wrote:> Is there a more elegant way to do this:>> [showif [variable]=[raw][variable][/raw]]variable=some default > value[/showif]>> Seems like using [raw] is a pretty kludgey way of determining if a > variable is undefined. I've been doing this forever, and maybe in ver > 6 there's a better way now?>>> -------------------------------------------------------------> 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/>-------------------------------------------------------------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/-------------------------------------------------------------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:
What do the &x=5&y=8 mean? (2002)
Webcat Hosting in London or UK (2003)
Unexceling (was I need a smart quote...) (1999)
Emailer (1997)
Trouble with formula.db + more explanation (1997)
Quitting WebMerchant ? (1997)
ampersand (1998)
(2000)
brain teaser with an advanced search (2001)
Running 2 two WebCatalog.acgi's (1996)
checking for [ and ] in form fields ... (1997)
ssl/empty cart problem (2003)
Help! WebCat2 bug (1997)
MATH (1998)
Moment of Thanks (1997)
Can't load tmpl files (1997)
redirect with more than 256 characters (1999)
auto enter dates (1998)
A multi-processor savvy WebCatalog? (1997)
Generating unique SKU from [cart] - FIXED! (1997)