Re: little help
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 37366
interpreted = N
texte = 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/
Associated Messages, from the most recent to the oldest:
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/
Gene Beljaeff
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:
problems with 2 tags shakur (1997)
webcat- multiple selection in input field (1997)
Purchased cart being overwritten - still !?? (1997)
Undeliverable Mail (1997)
Search returns all, not 20 (1997)
Parameter vs. Operator (1998)
Moment of Thanks (1997)
Creating a back button (1999)
Help! WebCat2 bug (Ben's input) (1997)
Nested vs conditional (1997)
Digger is kinda cool! (2004)
Cart Numbers (1997)
Separate SSL Server (1997)
Playin Tricks (2006)
TRAINING videos - Prove IT. (1998)
CommandSecurity? (1997)
Quit revisited (1997)
PCS Frames (1997)
showif comparison begins w/ and contains (1997)
sort problems....bug or brain fart? (1997)