Re: detecting if var is blank?
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68362
interpreted = N
texte = [hideif [myvar]=[raw][myvar][/raw]][hideif [myvar]=]Only shows if the variable is not blank or undefined[/hideif][/hideif]You can do this cleaner with an IF statement but figured you might want tostay with hideifs/showifsHTHAlexOn 1/25/07 3:11 PM, "Scott Szretter"
wrote:> I am hoping someone can tell me why this is not working:> > I am trying to show text and a variable only if it is actually preset> and contains something.> Both lines of code below produce this:> > abc:[myvar]> > Here are the two ways I have tried:> > 1.> [showif [myvar]!]abc:[myvar]> [/showif]> > 2.> [showif [myvar]![blank]]abc:[myvar][/showif]> > > Any ideas?> Thanks!-- Alex McCombie .. . . . . . . . . . . . . . . . . . . . . . . . . . . .Adventure Skies InteractiveBox 124Martville, NY 131111p. 315 .233 .9403 e. Alex@AdventureSkies.comhttp://AdventureSkies.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:
[hideif [myvar]=[raw][myvar][/raw]][hideif [myvar]=]Only shows if the variable is not blank or undefined[/hideif][/hideif]You can do this cleaner with an IF statement but figured you might want tostay with hideifs/showifsHTHAlexOn 1/25/07 3:11 PM, "Scott Szretter" wrote:> I am hoping someone can tell me why this is not working:> > I am trying to show text and a variable only if it is actually preset> and contains something.> Both lines of code below produce this:> > abc:[myvar]> > Here are the two ways I have tried:> > 1.> [showif [myvar]!]abc:[myvar]> [/showif]> > 2.> [showif [myvar]![blank]]abc:[myvar][/showif]> > > Any ideas?> Thanks!-- Alex McCombie .. . . . . . . . . . . . . . . . . . . . . . . . . . . .Adventure Skies InteractiveBox 124Martville, NY 131111p. 315 .233 .9403 e. Alex@AdventureSkies.comhttp://AdventureSkies.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/
Alex McCombie
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:
Looking up two prices in Formulas.db (1997)
[encrypt] blues.... (2000)
Dark Horse Comics success story (1997)
Public beta 6 for WebCatalog 4.0 is now available (2000)
GetCookie name error in docs (2003)
One more try (1997)
See [shell]s (2008)
Slightly OT: [sendmail] help (2003)
Big Databases (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
Need help with emailer- 2 issues (1997)
founditem align (1998)
Search/sort in URL Was: GuestBook example (1997)
WebCAT MacOS9 --> OSX (2003)
Off Topic - OS X web server, FTP accounts (2003)
numeric sorting (2000)
Two prices in shoppingcart? (1997)
Almost a there but..bye bye NetCloak (1997)
More on the email templates (1997)
More! on [ShowCart] and GET vs. POST (1997)