Re: WebDNA Programming question - Help Please
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38008
interpreted = N
texte = The IF context can be used in place of the SHOWIF context.In fact, the IF/THEN/ELSE contexts can be a more powerful alternative to theSHOWIF/HIDEIF contexts, simply because the conditional statement can combinemultiple comparisons involving a large number of text, math or formvariables. The ELSE context is also a nice alternative to the SHOWIF/HIDEIFcombination.> -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Daniel Smith> Sent: Monday, August 20, 2001 7:07 AM> To: WebCatalog Talk> Subject: Re: WebDNA Programming question - Help Please>>> you are using [if] in the wrong context...you want to use> [showif] instead.>> Look in the reference manual under showif and everything> should be good for you.>> ~Dan------------------------------------------------------------> Daniel H. Smith> WebDeveloper/WebDesigner Extraordinaire> 914.669.1187> dsmith7@dsmith7.com> For the Skills Go To: www.dsmith7.com> For the Love Go To: www.danandsabrina.com> For the Read Go To: www.yeahbabe.org> ------------------------------------------------------------>>> ---------- Original Message ----------------------------------> From: Ron Parker
> Reply-To: > (WebCatalog Talk)> Date: Mon, 20 Aug 2001 09:09:13>> >Hi,> >I'm very new to WebDNA and I am writing a yellow pages> search script and am> >stuck on these If/Then Statements. I have quite a few> nested inside the> >first> >ones but can't even get past the first one to see what's> wrong :-\ This is> >the error I get when trying to run my script:> >> >[if([action]=search)] An unknown error occurred:> >IfNotFound> >THEN> >> >I'm not even sure what that means? Here is the code for> my script below...> >Also, I was wondering how you set variables? Would it be> something like:> >> >[somevariable=1] or would it be [somevariable]=1 ? Here> is the full script;> >I> >use both of those variable assignment commands> thoughout it.> >> >> >> >> >Web Catalog Search> >> >> >[if([action]=search)]> >[then]> >> >[character]=[GetChars start=1&end=1][code][/Getchars]> >[if(([character]=1)|([character]=2)|([character]=3)|(> [character> >]> >> >=4)|([character]=5)|([character]=6)|([character]=7> )|([charact> >er> >> >]=8)|([character]=9)|([character]=0))]> >[then]> >[number]=[countchars][code][/countchars]> >> >[if([number]=5)]> >[then]> >[searchcode=Zipcode]> >[/then]> >[else]> >[searchcode=Telenum]> >[/else]> >[/if]> >> >[/then]> >[else]> >[searchcode=City]> >[/else]> >[/if]> >> >[if([type]=name)]> >[then]> >[search> db=ohiostate.db&bw[searchcode]data=[code]&eqCompany> data=[search]]> >[/then]> >[else]> >[search> >db=ohiostate.db&bw[searchcode]data=[code]&woSection> _headdata=[search]]> >[/else]> >[/if]> >Found [numfound] matches.> >
> >[founditems]> >> >
> >[company]> >
> >[section_head]> >
> >[if([telenum]!)]> >[then]> >[telenum]> >
> >[/then]> >[/if]> >> >Name:> >[if([first_name]=)]> >[then]> >Not Given> >[/then]> >[else]> >[first_name]> >[last_name]> >
> >[/else]> >[/if]> >> >[address]> >
> >[city], [state] [zipcode]> >
> >Employees: [no_of_employees]> >
> >[/DNA_founditems]> >[/DNA_search]> >[/then]> >[else]> >> >[/else]> >[/if]> >> >> >> >Any help would be greatly appreciated. Thanks for your> time.> >-Jeff> >> >> >> >Thanks, I'm really stuck on this problem I'm getting.> >> >Jeff> >coopa2004@aol.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/> >>>> __________________________________________________> D O T E A S Y - Join the web hosting revolution!> http://www.doteasy.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/-------------------------------------------------------------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:
The IF context can be used in place of the SHOWIF context.In fact, the IF/THEN/ELSE contexts can be a more powerful alternative to theSHOWIF/HIDEIF contexts, simply because the conditional statement can combinemultiple comparisons involving a large number of text, math or formvariables. The ELSE context is also a nice alternative to the SHOWIF/HIDEIFcombination.> -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Daniel Smith> Sent: Monday, August 20, 2001 7:07 AM> To: WebCatalog Talk> Subject: Re: WebDNA Programming question - Help Please>>> you are using [if] in the wrong context...you want to use> [showif] instead.>> Look in the reference manual under showif and everything> should be good for you.>> ~Dan------------------------------------------------------------> Daniel H. Smith> WebDeveloper/WebDesigner Extraordinaire> 914.669.1187> dsmith7@dsmith7.com> For the Skills Go To: www.dsmith7.com> For the Love Go To: www.danandsabrina.com> For the Read Go To: www.yeahbabe.org> ------------------------------------------------------------>>> ---------- Original Message ----------------------------------> From: Ron Parker > Reply-To: > (WebCatalog Talk)> Date: Mon, 20 Aug 2001 09:09:13>> >Hi,> >I'm very new to WebDNA and I am writing a yellow pages> search script and am> >stuck on these If/Then Statements. I have quite a few> nested inside the> >first> >ones but can't even get past the first one to see what's> wrong :-\ This is> >the error I get when trying to run my script:> >> >[if([action]=search)] An unknown error occurred:> >IfNotFound> >THEN> >> >I'm not even sure what that means? Here is the code for> my script below...> >Also, I was wondering how you set variables? Would it be> something like:> >> >[somevariable=1] or would it be [somevariable]=1 ? Here> is the full script;> >I> >use both of those variable assignment commands> thoughout it.> >> >> >> >> >Web Catalog Search> >> >> >[if([action]=search)]> >[then]> >> >[character]=[GetChars start=1&end=1][code][/Getchars]> >[if(([character]=1)|([character]=2)|([character]=3)|(> [character> >]> >> >=4)|([character]=5)|([character]=6)|([character]=7> )|([charact> >er> >> >]=8)|([character]=9)|([character]=0))]> >[then]> >[number]=[countchars][code][/countchars]> >> >[if([number]=5)]> >[then]> >[searchcode=Zipcode]> >[/then]> >[else]> >[searchcode=Telenum]> >[/else]> >[/if]> >> >[/then]> >[else]> >[searchcode=City]> >[/else]> >[/if]> >> >[if([type]=name)]> >[then]> >[search> db=ohiostate.db&bw[searchcode]data=[code]&eqCompany> data=[search]]> >[/then]> >[else]> >[search> >db=ohiostate.db&bw[searchcode]data=[code]&woSection> _headdata=[search]]> >[/else]> >[/if]> >Found [numfound] matches.> >
> >[founditems]> >> >
> >[company]> >
> >[section_head]> >
> >[if([telenum]!)]> >[then]> >[telenum]> >
> >[/then]> >[/if]> >> >Name:> >[if([first_name]=)]> >[then]> >Not Given> >[/then]> >[else]> >[first_name]> >[last_name]> >
> >[/else]> >[/if]> >> >[address]> >
> >[city], [state] [zipcode]> >
> >Employees: [no_of_employees]> >
> >[/DNA_founditems]> >[/DNA_search]> >[/then]> >[else]> >> >[/else]> >[/if]> >> >> >> >Any help would be greatly appreciated. Thanks for your> time.> >-Jeff> >> >> >> >Thanks, I'm really stuck on this problem I'm getting.> >> >Jeff> >coopa2004@aol.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/> >>>> __________________________________________________> D O T E A S Y - Join the web hosting revolution!> http://www.doteasy.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/-------------------------------------------------------------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/
Scott Anderson
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:
send mail problem? (1997)
Separate SSL Server (1997)
[OT] Retrieve old DNS data? (2007)
WCS Newbie question (1997)
problem with NT beta (1997)
WebCat2: Items xx to xx shown, etc. (1997)
RE: Upload (1998)
Database causes out of memory error (2000)
Re:no [search] with NT (1997)
Closing databases (2003)
Resume Catalog ? (1997)
BinaryBody for ReturnRaw (2003)
form crasehes server (1997)
Generating unique SKU from [cart] - Still Stumped... (1997)
Restricting templates from causing havoc (2000)
Re:PCS Customer submissions ? (1997)
Showif, Hideif reverse logic ? (1997)
DataBaseHelper Flawed (1997)
Seattle based Webcatters? (2000)
Re[2]: searching within same page (2000)