Re: [showif] with !

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35755
interpreted = N
texte = Kim,Figure out where the value of [title_req] is coming from.Is it a db field? or is it a formvar?When displaying the value of [somevar] on a page:if [somevar]'s value is coming from a formvar, then it will display as [somevar] IF that formvar has NOT been passed in (like with a checkbox that was not checked), BUTif [somevar]'s value is coming from a formvar, then it will display as (that's nothing at all in between those quote marks) WHEN that formvar has been passed in w/ a value equal to the null string (i.e. it = zero characters), BUTif [somevar]'s value is coming from a db field, then it will display as (that's nothing at all in between those quote marks) WHEN that db field has nothing in it. so in your case I have to assume that [showif [url][title_req][/url]!][text]complete=F[/text][/showif] does not evaluate to show its contents because 'title_req' has NOT been assigned the null string value, which is what you are comparing to.Hope I got that right ;-)-John Kim Ingram wrote:> Nope...the [url]'s don't seem to fix it. Here's the exact code, and > [title]=test! > > [showif [url][title_req][/url]!][text]complete=F[/text][/showif] > > > [showif [url][name][/url]!][name]
[/showif] > > > > > > > >Since we're talking about [showif]'s... > > > > > >I've been working with the following: [showif > > [name]!][name]
[/showif] > > > > > >If [name]=Hello World! > > > > > >It doesn't work, because it ends up Hello World ! ! > > > > > >I've already tried [showif [name]>] and that doesn't work with > > my conversion > > >of html code in [name]. > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [showif] with ! (John Peacock 2000)
  2. Re: [showif] with ! (John Butler 2000)
  3. Re: [showif] with ! (Kim Ingram 2000)
  4. Re: [showif] with ! (Rob Marquardt 2000)
  5. Re: [showif] with ! (John Peacock 2000)
  6. Re: [showif] with ! (Kim Ingram 2000)
  7. Re: [showif] with ! (Aaron Lynch 2000)
  8. Re: [showif] with ! (John Butler 2000)
  9. Re: [showif] with ! (John Davies 2000)
  10. Re: [showif] with ! (Kim Ingram 2000)
  11. Re: [showif] with ! (Gary Krockover 2000)
  12. Re: [showif] with ! (Kim Ingram 2000)
  13. Re: [showif] with ! (Kim Ingram 2000)
  14. Re: [showif] with ! (Anup Setty 2000)
  15. Re: [showif] with ! (Charles Kline 2000)
  16. [showif] with ! (Kim Ingram 2000)
Kim,Figure out where the value of [title_req] is coming from.Is it a db field? or is it a formvar?When displaying the value of [somevar] on a page:if [somevar]'s value is coming from a formvar, then it will display as [somevar] IF that formvar has NOT been passed in (like with a checkbox that was not checked), BUTif [somevar]'s value is coming from a formvar, then it will display as (that's nothing at all in between those quote marks) WHEN that formvar has been passed in w/ a value equal to the null string (i.e. it = zero characters), BUTif [somevar]'s value is coming from a db field, then it will display as (that's nothing at all in between those quote marks) WHEN that db field has nothing in it. so in your case I have to assume that [showif [url][title_req][/url]!][text]complete=F[/text][/showif] does not evaluate to show its contents because 'title_req' has NOT been assigned the null string value, which is what you are comparing to.Hope I got that right ;-)-John Kim Ingram wrote:> Nope...the [url]'s don't seem to fix it. Here's the exact code, and > [title]=test! > > [showif [url][title_req][/url]!][text]complete=F[/text][/showif] > > > [showif [url][name][/url]!][name]
[/showif] > > > > > > > >Since we're talking about [showif]'s... > > > > > >I've been working with the following: [showif > > [name]!][name]
[/showif] > > > > > >If [name]=Hello World! > > > > > >It doesn't work, because it ends up Hello World ! ! > > > > > >I've already tried [showif [name]>] and that doesn't work with > > my conversion > > >of html code in [name]. > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/ John Butler

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:

Mimeheaders parameters, which exist? (2003) searching with groups (1997) shopping cart bug? or link? (1999) Search Command, multiple dbs, etc. --still confused (2000) strange math (2004) Replacing a Word (1999) How To Install (2003) Tab Charactor (1997) Re:listfiles-looking for slick solution (1997) [LOOKUP] (1997) Letters as SKU (1998) Re[2]: Shopping Cart Directory (2000) Searching for Email Address (2004) PCS Emailer's role ? (1997) [cart] generation (1998) Problem with empty form-variables in [search] (1998) Quitting WebMerchant ? (1997) WebDNA-Talk Digests (1997) WebCat2 beta 11 - new prefs ... (1997) WebCat2b12 - nesting [tags] (1997)