Re: little help

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37469
interpreted = N
texte = on 7/24/01 9:17 AM, Gene Beljaeff at gbeljaeff@fiskars.com wrote:> Keep in mind that anything within the [founditems] context will be written for > each item found of the search, so if you are testing if no items are found, it > can't be within within the [founditems] context. Try it like this: > > [search db=somedatabase.db . . . etc.] > [showif [numfound]=0] > Non Items Found!
> [/showif] > [showif [numfound]!0] > There were [nuumitems] found:
> [foundItems] > Item [index]: [ID]
> [/foundItems] > [/showif] > [/search] > > Gene Beljaeff > > > ----- original message ----- >> A search is conducted. >> >> [search db=somedatabase.db . . . etc.] >> [founditems] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Now when I test for both circumstances, the first showif circumstance (the >> one numfound =0) doesn't appear and doesn't work, but the second >> circumstance does. When the founditems tags are removed, the first >> circumstance works, but the second one does not. So I solved the problem by >> doing this. >> >> [search db=somedatabase.db . . . etc.] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> [founditems] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Remember that I'm the new guy here. I'd like to know why my problem occurred >> and whether my solution to it is valid. Thanx in advance . . . >> >> ------------------------------------------------------------- >> 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/ Thanks Gene for the explanation. ------------------------------------------------------------- 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. [OT] A little help with permissions (WJ Starck 2003)
  2. Re: Need a little help with categories... (Jeff Logan 2003)
  3. Re: Need a little help with categories... (Brian Fries 2003)
  4. Need a little help with categories... (Jeff Logan 2003)
  5. Re: little help (Rudy 2001)
  6. Re: little help (Gene Beljaeff 2001)
  7. little help (Rudy 2001)
  8. Re: little help (Anup Setty 2001)
  9. a little help w/ this .debug error (Charlie Romero 2000)
  10. Re: A little help on e-mail (HELP!!! :-) ) (PCS Technical Support 1998)
  11. Re: A little help on e-mail (HELP!!! :-) ) (Terry Wilson 1998)
  12. Re: A little help on e-mail (HELP!!! :-) ) (Sandra L. Pitner 1998)
  13. Re: A little help on e-mail (HELP!!! :-) ) (Jim V 1998)
  14. Re: A little help on e-mail (HELP!!! :-) ) (Kenneth Grome 1998)
  15. Re: A little help on e-mail (HELP!!! :-) ) (PCS Technical Support 1998)
  16. Re: A little help on e-mail (HELP!!! :-) ) (Jim V 1998)
  17. Re: A little help on e-mail (HELP!!! :-) ) (PCS Technical Support 1998)
  18. Re: A little help on e-mail (HELP!!! :-) ) (Jim V 1998)
  19. Re: A little help on e-mail (HELP!!! :-) ) (Jim V 1998)
  20. Re: A little help on e-mail (HELP!!! :-) ) (PCS Technical Support 1998)
  21. Re: A little help on e-mail (HELP!!! :-) ) (Kenneth Grome 1998)
  22. A little help on e-mail (HELP!!! :-) ) (Jim V 1998)
on 7/24/01 9:17 AM, Gene Beljaeff at gbeljaeff@fiskars.com wrote:> Keep in mind that anything within the [founditems] context will be written for > each item found of the search, so if you are testing if no items are found, it > can't be within within the [founditems] context. Try it like this: > > [search db=somedatabase.db . . . etc.] > [showif [numfound]=0] > Non Items Found!
> [/showif] > [showif [numfound]!0] > There were [nuumitems] found:
> [founditems] > Item [index]: [ID]
> [/foundItems] > [/showif] > [/search] > > Gene Beljaeff > > > ----- original message ----- >> A search is conducted. >> >> [search db=somedatabase.db . . . etc.] >> [founditems] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Now when I test for both circumstances, the first showif circumstance (the >> one numfound =0) doesn't appear and doesn't work, but the second >> circumstance does. When the founditems tags are removed, the first >> circumstance works, but the second one does not. So I solved the problem by >> doing this. >> >> [search db=somedatabase.db . . . etc.] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> [founditems] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Remember that I'm the new guy here. I'd like to know why my problem occurred >> and whether my solution to it is valid. Thanx in advance . . . >> >> ------------------------------------------------------------- >> 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/ Thanks Gene for the explanation. ------------------------------------------------------------- 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/ Rudy

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:

$Quit, $CloseDatabase corrections (1997) Re[3]: Weird [blank] interpretation (1999) problems with 2 tags (1997) [WebDNA] Encode cookies ONLY via "method=Base64" (2008) best way to test for the existence of a parameter in a url (2003) osx or redhat and / or other (2005) WebCatalog can't find database (1997) mail test (1997) Date or time comparisons have bugs ... (1998) Search returns all, not 20 (1997) Faxing orders in place of email (1997) Mac Vs WindowsNT (1997) [OT] Connect to MySQL (2004) auto enter dates (1998) shipping help (1998) Web Logs (1998) Authenticating users without dialog box (1997) RE: ShowNext Command (1997) WebDNA install - linux (2002) Search Engine bots (2002)