Re: WebDNA Programming question - Help Please

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38007
interpreted = N
texte = If I am reading your code right, it looks like you do not have a space separating the IF context and its parameter.[if([action]=search)] Should be [If [action]=search]]You only need to use () when you need to control the order of operations in a complex comparison . For example...[If (([A]=1)|([A]=2))&([name]=John)] [then] ... [/then] [/If]> -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Ron Parker > Sent: Monday, August 20, 2001 6:09 AM > To: WebCatalog Talk > Subject: WebDNA Programming question - Help Please > > > 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]&eqCompanydata=[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] >
> > > >
> > > > > > > > > > >
> > > Name of Business > Type of Business >
> > > > >
>
>
> [/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/------------------------------------------------------------- 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. Re: WebDNA Programming question - Help Please (Scott Anderson 2001)
  2. Re: WebDNA Programming question - Help Please (Scott Anderson 2001)
  3. Re: WebDNA Programming question - Help Please (Ron Parker 2001)
  4. Re: WebDNA Programming question - Help Please (Daniel Smith 2001)
  5. WebDNA Programming question - Help Please (Ron Parker 2001)
If I am reading your code right, it looks like you do not have a space separating the IF context and its parameter.[if([action]=search)] Should be [If [action]=search]]You only need to use () when you need to control the order of operations in a complex comparison . For example...[If (([A]=1)|([A]=2))&([name]=John)] [then] ... [/then] [/If]> -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Ron Parker > Sent: Monday, August 20, 2001 6:09 AM > To: WebCatalog Talk > Subject: WebDNA Programming question - Help Please > > > 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]&eqCompanydata=[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] >
> > > >
> > > > > > > > > > >
> > > Name of Business > Type of Business >
> > > > >
>
>
> [/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/------------------------------------------------------------- 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:

[WebDNA] Check if http or https? (2018) auto-stripping of spaces (1997) using showpage and showcart commands (1996) WebCatalog NT beta 18 problem (1997) [OT] Robust order processing (2003) [/application] error? (1997) Multiple Merchant Accounts? (1997) Popup Menu Options (1998) Nesting format tags (1997) Help HTML reader (1999) Server Takes 2 Hours to Boot UP (2004) text size limitation (1997) Need WebDNA that crashes server for testing (2000) Show shoppingcart after remove last item (1997) Simple and Direct Question for SMSI (2002) WebCat2b12 CGI Mac - [shownext] problem (1997) -REPOST- WebCat 3 & Aliases (2000) How can I record purchases to a database? (1998) Multiple fields on 1 input (1997) Undocumented date issues? (1998)