Re: searching with if/then

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58045
interpreted = N
texte = Sorry if this is a double post, but I'm having trouble posting to the list for some reason. Anyway, doesn't the [IF] tag require the [ELSE] and the [THEN] tag? [If (("[username]"="Grant") | ([grandTotal]<100)) & ({[date]}<{2/15/2000})] [Then]either username was Grant or grandTotal was < $100 and it's not Feb 15, 2000 yet[/Then] [Else]The complex expression wasn't true[/Else] [/If] Salvatore B. D'Anna DotNetNuke Hosting V:(619)308-7606 F: (619)374-2268 http://DotNetNukeHosting.com -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Jon Young Sent: Monday, May 24, 2004 4:57 PM To: WebDNA Talk Subject: searching with if/then Hello all, First post ever! Anybody know why the heck this isn't working... I can explain more if needed: [search db=../../www.philsfonts.com/vault/philsfonts.db[!] [/!][showif [keyword]!]&[wrd]GROUP1datarq=[keyword]&GROUP1FIELD=[!] [/!][If(([fontsrch]=T)&([famsrch]=T))][Then]nohtml+fontname+foundry+famp kg+[/Then][/If][!] [/!][If(([fontsrch]=T)&([famsrch]=F))][Then]nohtml+fontname+foundry+famp kg+[/Then][/If][!] [/!][If(([fontsrch]=F)&([famsrch]=T))][Then]&eqFAMDISPdatarq=T[/Then][/ If][!] [/!][If(([fontsrch]=F)&([famsrch]=F))][Then][math show=F]err=0,err_num=0[/math][/Then][/If][!] [/!][showif [foundrystring]!]&woFOUNDRYdatarq=[foundrystring]&FOUNDRYword=sw&FOUNDRY wbrk=,[/showif][!] [/!][showif [designer]!]&eqDESIGNERdatarq=[designer][/showif][!] [/!][showif [classstring]!]&woCLASSIFICATIONdatarq=[classstring]&CLASSIFICATIONword= sw&CLASSIFICATIONwbrk=,[/showif][!] [/!]&MANOPTsort=1&MANOPTtype=text&MANOPTsdir=de&FONTNAMEsort=2&FONTNAMEt ype=text&FONTNAMEsdir=as&VOLPKGNUMsort=3&FONTNAMEsumm=T&startat=[startat ]&max=[rslts]][/showif][/search] Not sure if this is the right way to phrase this but... we're trying to assign the different search parameters with various if/then conditional statements and some [showif]'s. Not working. When we try to access the [founditems] later on in the code, it's telling me it can't because there is no search context. This was an experiment. So it may be way off. Just thought I'd check. Thanks for any help! Jon -- Jon Young | Phil's Fonts 501 Olney Sandy Spring Road, Sandy Spring, MD 20860 tel 800-681-9375 or 301-260-2285 | fax 301-260-2277 mailto:webmaster@philsfonts.com | http://www.philsfonts.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/ __________ NOD32 1.772 (20040524) Information __________ This message was checked by NOD32 Antivirus System. http://www.nod32.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:

    
  1. Re: searching with if/then ( Gary Krockover 2004)
  2. Re: searching with if/then ( Stuart Tremain 2004)
  3. Re: searching with if/then ( "Sal" 2004)
  4. Re: searching with if/then ( Brian Fries 2004)
  5. Re: searching with if/then ( Jon Young 2004)
  6. Re: searching with if/then ( Stuart Tremain 2004)
  7. searching with if/then ( Jon Young 2004)
Sorry if this is a double post, but I'm having trouble posting to the list for some reason. Anyway, doesn't the [if] tag require the [ELSE] and the [THEN] tag? [If (("[username]"="Grant") | ([grandTotal]<100)) & ({[date]}<{2/15/2000})] [Then]either username was Grant or grandTotal was < $100 and it's not Feb 15, 2000 yet[/Then] [Else]The complex expression wasn't true[/Else] [/If] Salvatore B. D'Anna DotNetNuke Hosting V:(619)308-7606 F: (619)374-2268 http://DotNetNukeHosting.com -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Jon Young Sent: Monday, May 24, 2004 4:57 PM To: WebDNA Talk Subject: searching with if/then Hello all, First post ever! Anybody know why the heck this isn't working... I can explain more if needed: [search db=../../www.philsfonts.com/vault/philsfonts.db[!] [/!][showif [keyword]!]&[wrd]GROUP1datarq=[keyword]&GROUP1FIELD=[!] [/!][If(([fontsrch]=T)&([famsrch]=T))][Then]nohtml+fontname+foundry+famp kg+[/Then][/If][!] [/!][If(([fontsrch]=T)&([famsrch]=F))][Then]nohtml+fontname+foundry+famp kg+[/Then][/If][!] [/!][If(([fontsrch]=F)&([famsrch]=T))][Then]&eqFAMDISPdatarq=T[/Then][/ If][!] [/!][If(([fontsrch]=F)&([famsrch]=F))][Then][math show=F]err=0,err_num=0[/math][/Then][/If][!] [/!][showif [foundrystring]!]&woFOUNDRYdatarq=[foundrystring]&FOUNDRYword=sw&FOUNDRY wbrk=,[/showif][!] [/!][showif [designer]!]&eqDESIGNERdatarq=[designer][/showif][!] [/!][showif [classstring]!]&woCLASSIFICATIONdatarq=[classstring]&CLASSIFICATIONword= sw&CLASSIFICATIONwbrk=,[/showif][!] [/!]&MANOPTsort=1&MANOPTtype=text&MANOPTsdir=de&FONTNAMEsort=2&FONTNAMEt ype=text&FONTNAMEsdir=as&VOLPKGNUMsort=3&FONTNAMEsumm=T&startat=[startat ]&max=[rslts]][/showif][/search] Not sure if this is the right way to phrase this but... we're trying to assign the different search parameters with various if/then conditional statements and some [showif]'s. Not working. When we try to access the [founditems] later on in the code, it's telling me it can't because there is no search context. This was an experiment. So it may be way off. Just thought I'd check. Thanks for any help! Jon -- Jon Young | Phil's Fonts 501 Olney Sandy Spring Road, Sandy Spring, MD 20860 tel 800-681-9375 or 301-260-2285 | fax 301-260-2277 mailto:webmaster@philsfonts.com | http://www.philsfonts.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/ __________ NOD32 1.772 (20040524) Information __________ This message was checked by NOD32 Antivirus System. http://www.nod32.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/ "Sal"

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:

WebCat on Intel Core 2 macs anyone? (2007) Multiple cart additions (1997) Tax on Shipping question (1998) Using Webcatalog to write a search engine.... (2001) Practical Uses (2003) Install problems on 3.08 (2000) WebCat2b12--[searchstring] bug (1997) Hard Questions ? (1997) WebCatalog 2.0 b 15 mac (1997) WebCat2 - [format thousands] (1997) Two submit buttons ? (1997) [BULK] [WebDNA] Error 500 with SUMM=T (2017) WC2f3 (1997) Multiple Admins through users.db (1997) OT: New Virus? (2001) WebCat2_Mac RETURNs in .db (1997) [ot] ascii values for lf and cr (2001) Exclamation point (1997) [WebDNA] Accepting Payments on Site (2013) [WebDNA] [thisurlplusget] not working (2012)