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:
 
Math, Multiple Equasions and Show/Hide (1998)
 
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
 
authenticating a second user (1997)
 
webmerchant/mac auth. rejects zipcode (1998)
 
WebCat b13 CGI -shownext- (1997)
 
New public beta available (1997)
 
Counting records (2000)
 
[WebDNA] Need Rosetta to install on OS X? (2010)
 
New commands in Final candidate (1997)
 
Updating a database once per day - An example (1998)
 
[SearchString] problem with [search] context (1997)
 
Formatting a .txt file (1998)
 
Allow/Deny with Webcat? (1998)
 
WebCatalog for guestbook ? (1997)
 
Multiple catalog databases and showcart (1997)
 
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
 
Dummy Form Variables Needed (2000)
 
WCS Newbie question (1997)
 
carriage returns in data (1997)
 
WebDNA 5.0 freeBSD?!!? (2003)