Re: searching with if/then
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58051
interpreted = N
texte = I have seen some people having trouble leaving out else or then tags when they were not required, I haven't come across any problems myself.On 26 May 2004, at 01:56 PM, Sal wrote:> 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+fam > p> kg+[/Then][/If][!]> [/!][If(([fontsrch]=T)&([famsrch]=F))][Then]nohtml+fontname+foundry+fam > p> 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&FOUNDR > Y> wbrk=,[/showif][!]> [/!][showif [designer]!]&eqDESIGNERdatarq=[designer][/showif][!]> [/!][showif> [classstring]!]&woCLASSIFICATIONdatarq=[classstring]&CLASSIFICATIONword > => sw&CLASSIFICATIONwbrk=,[/showif][!]> [/!]&MANOPTsort=1&MANOPTtype=text&MANOPTsdir=de&FONTNAMEsort=2&FONTNAME > t> ype=text&FONTNAMEsdir=as&VOLPKGNUMsort=3&FONTNAMEsumm=T&startat=[starta > t> ]&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/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------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:
I have seen some people having trouble leaving out else or then tags when they were not required, I haven't come across any problems myself.On 26 May 2004, at 01:56 PM, Sal wrote:> 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+fam > p> kg+[/Then][/If][!]> [/!][If(([fontsrch]=T)&([famsrch]=F))][Then]nohtml+fontname+foundry+fam > p> 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&FOUNDR > Y> wbrk=,[/showif][!]> [/!][showif [designer]!]&eqDESIGNERdatarq=[designer][/showif][!]> [/!][showif> [classstring]!]&woCLASSIFICATIONdatarq=[classstring]&CLASSIFICATIONword > => sw&CLASSIFICATIONwbrk=,[/showif][!]> [/!]&MANOPTsort=1&MANOPTtype=text&MANOPTsdir=de&FONTNAMEsort=2&FONTNAME > t> ype=text&FONTNAMEsdir=as&VOLPKGNUMsort=3&FONTNAMEsumm=T&startat=[starta > t> ]&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/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------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/
Stuart Tremain
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:
Still Learning (1997)
Search Questions (2000)
Robert Minor duplicate mail (1997)
WebCatalog Q & A pages (1997)
flushdatabases (1997)
[WebDNA] WebDNA on LiveCD ... (2008)
year 2000 + and webmerch, macauth? (1998)
Applescript error (1998)
WebCatalog stalls (1998)
Showif vs. IF/then/else (2001)
Date or time comparisons have bugs ... (1998)
hideif/showif causes error if wrapped around searches (2003)
Adding Message to Order (1997)
WebCatalog can't find database (1997)
Images (2000)
[WebDNA] "commerce tags" versus "shopping" tags? (specifically (2009)
Multiple prices per product (2004)
emailer (1997)
RAM variables (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)