Re: [showif] with !
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 36029
interpreted = N
texte = > 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), BUT>> if [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), BUT>> if [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.I know it's been a few days, but for those of you following thisthread....the [title_req] is coming from a form, but the problem isn'tcoming from when it is left blank. Everything works fine when the[title_req] is left blank. The problem is coming from when[title_req]=Anything Ending with !, because that puts two !'s in a row...andI don't think WebCatalog knows what to do with it. I've tried thefollowing:[showif [url][title_req][/url]!][text]complete=F[/text][/showif][showif [title_req]![raw][title_req][/raw]][text]complete=F[/text][/showif][showif[url][title_req][/url]![raw][title_req][/raw]][text]complete=F[/text][/showif]With each of the above, examples, complete=F does show, and I don't wantit to. I want [title_req] to be anything but blank...not anything but blankor ending with ! Does this make sense at all?Anyway, for those of you who need to know, John Davies' solution workedexcellent in this case.[showif[countchars][title_req][/countchars]=0][text]complete=F[/text][/showif]This is the only code so far that will allow [title_req] to be anything butblank.-------------------------------------------------------------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:
> 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), BUT>> if [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), BUT>> if [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.I know it's been a few days, but for those of you following thisthread....the [title_req] is coming from a form, but the problem isn'tcoming from when it is left blank. Everything works fine when the[title_req] is left blank. The problem is coming from when[title_req]=Anything Ending with !, because that puts two !'s in a row...andI don't think WebCatalog knows what to do with it. I've tried thefollowing:[showif [url][title_req][/url]!][text]complete=F[/text][/showif][showif [title_req]![raw][title_req][/raw]][text]complete=F[/text][/showif][showif[url][title_req][/url]![raw][title_req][/raw]][text]complete=F[/text][/showif]With each of the above, examples, complete=F does show, and I don't wantit to. I want [title_req] to be anything but blank...not anything but blankor ending with ! Does this make sense at all?Anyway, for those of you who need to know, John Davies' solution workedexcellent in this case.[showif[countchars][title_req][/countchars]=0][text]complete=F[/text][/showif]This is the only code so far that will allow [title_req] to be anything butblank.-------------------------------------------------------------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/
Kim Ingram
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:
Running _every_ page through WebCat ? (1997)
[WebDNA] Advanced search 'rq' problem (2013)
WebDNA made easier? (1998)
WebCat2 several catalogs? (1997)
Are you an WC expert? (1997)
Username for Admin Group (1997)
Upgrade Problem.... (1998)
Accepting credit cards (1997)
Shopping problems with 2.1b3 acgi (1997)
[searh] or [shownext]problem (1998)
Problems with [Search] param - Mac Plugin b15 (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
RE: [WebDNA] [OT] hello (2012)
WAS Strange non-display problem, now BAD MATH (2002)
Another question (1997)
How can I Add several Items into the cart at once? (1997)
Resume Catalog ? (1997)
AOL and [referrer] (2001)
[BoldWords] WebCat.acgib15Mac (1997)
Multiple prices (1997)