Re: Am I being really stupid?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53170
interpreted = N
texte = hmmm... you could try three things... firstly - wrap the "[DomainDetails]" ^ "No match for" in brackets... eg: ("[DomainDetails]" ^ "No match for") i don't know why this might make a difference but i always do write my if's like this even if they do only have one condition... or you could do a "[getchars start=1&end=12][domainDetails][/getchars]"="No match for".... instead of doing a contains... or finally - resort to the old faithfull [showif] / [hideif] :) haha - love it when stuff doesn't work how it should :) ----- Original Message ----- From: "Steve Craig" To: "WebDNA Talk" Sent: Monday, September 29, 2003 11:44 PM Subject: Re: Am I being really stupid? > > Thanks for the response. > > I had output to screen and actually tried copying the source as is into my > search "No match for". There are no strange characters or spaces etc but is > still won't seem to find it. > > It's a bit of a mystery, here's an extract of the [DomainDetails] variable. > > ------------------------------------------------------------------------ > > Domain names in the .com and .net domains can now be registered > with many different competing registrars. Go to http://www.internic.net > for detailed information. > > No match for "SOMESTRANGENAME.COM". > > >>> Last update of whois database: Sun, 28 Sep 2003 18:05:54 EDT <<< > > ------------------------------------------------------------------------ > > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1224 642960 Fax +44 1224 642962 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > ======================================== > > > > From: "Andrew Simpson" > > Reply-To: (WebDNA Talk) > > Date: Mon, 29 Sep 2003 23:33:07 +1200 > > To: (WebDNA Talk) > > Subject: Re: Am I being really stupid? > > > > well, i personally have never used a "^" in an if statement but according to > > the docs you are doing it perfectly so thats probably not the problem... if > > it is going straight to the else then [DomainDetails] must not contain "No > > match for"... > > > > output [DomainDetails] to the screen and see what it contains... remembering > > that ^ is an exact substring search so something like "there is no match in > > the database for" will not trigger the then... > > > > hth. > > > > ----- Original Message ----- > > From: "Steve Craig" > > To: "WebDNA Talk" > > Sent: Monday, September 29, 2003 11:27 PM > > Subject: Am I being really stupid? > > > > > >> Hi > >> > >> I am trying to use an if then statement to do something and it's not > >> behaving as I expected, it's probably me. > >> > >> Having done a whois lookup and stored the results in [DomainDetails] I am > >> trying to test for the words "No match for" so I am using > >> > >> [if "[DomainDetails]" ^ "No match for"] > >> [then]...[/then] > >> [else]...[/else] > >> [/if] > >> > >> It always just goes straight to the [else] even though I know the words > > are > >> there. Am I constructing the statement wrongly? > >> > >> Thanks for any help > >> ======================================== > >> Steve Craig - Asylum Interactive Ltd > >> Tel +44 1224 642960 Fax +44 1224 642962 > >> ======================================== > >> http://www.asylumweb.com > >> Email: steve@asylumweb.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/ > >> > > > > > > ------------------------------------------------------------- > > 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/ > > > > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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: Am I being really stupid? ( Steve Craig 2003)
  2. Re: Am I being really stupid? ( Joe D'Andrea 2003)
  3. Re: Am I being really stupid? ( "Andrew Simpson" 2003)
  4. Re: Am I being really stupid? ( Steve Craig 2003)
  5. Re: Am I being really stupid? ( "Andrew Simpson" 2003)
  6. Am I being really stupid? ( Steve Craig 2003)
hmmm... you could try three things... firstly - wrap the "[DomainDetails]" ^ "No match for" in brackets... eg: ("[DomainDetails]" ^ "No match for") i don't know why this might make a difference but i always do write my if's like this even if they do only have one condition... or you could do a "[getchars start=1&end=12][domainDetails][/getchars]"="No match for".... instead of doing a contains... or finally - resort to the old faithfull [showif] / [hideif] :) haha - love it when stuff doesn't work how it should :) ----- Original Message ----- From: "Steve Craig" To: "WebDNA Talk" Sent: Monday, September 29, 2003 11:44 PM Subject: Re: Am I being really stupid? > > Thanks for the response. > > I had output to screen and actually tried copying the source as is into my > search "No match for". There are no strange characters or spaces etc but is > still won't seem to find it. > > It's a bit of a mystery, here's an extract of the [DomainDetails] variable. > > ------------------------------------------------------------------------ > > Domain names in the .com and .net domains can now be registered > with many different competing registrars. Go to http://www.internic.net > for detailed information. > > No match for "SOMESTRANGENAME.COM". > > >>> Last update of whois database: Sun, 28 Sep 2003 18:05:54 EDT <<< > > ------------------------------------------------------------------------ > > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1224 642960 Fax +44 1224 642962 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > ======================================== > > > > From: "Andrew Simpson" > > Reply-To: (WebDNA Talk) > > Date: Mon, 29 Sep 2003 23:33:07 +1200 > > To: (WebDNA Talk) > > Subject: Re: Am I being really stupid? > > > > well, i personally have never used a "^" in an if statement but according to > > the docs you are doing it perfectly so thats probably not the problem... if > > it is going straight to the else then [DomainDetails] must not contain "No > > match for"... > > > > output [DomainDetails] to the screen and see what it contains... remembering > > that ^ is an exact substring search so something like "there is no match in > > the database for" will not trigger the then... > > > > hth. > > > > ----- Original Message ----- > > From: "Steve Craig" > > To: "WebDNA Talk" > > Sent: Monday, September 29, 2003 11:27 PM > > Subject: Am I being really stupid? > > > > > >> Hi > >> > >> I am trying to use an if then statement to do something and it's not > >> behaving as I expected, it's probably me. > >> > >> Having done a whois lookup and stored the results in [DomainDetails] I am > >> trying to test for the words "No match for" so I am using > >> > >> [if "[DomainDetails]" ^ "No match for"] > >> [then]...[/then] > >> [else]...[/else] > >> [/if] > >> > >> It always just goes straight to the [else] even though I know the words > > are > >> there. Am I constructing the statement wrongly? > >> > >> Thanks for any help > >> ======================================== > >> Steve Craig - Asylum Interactive Ltd > >> Tel +44 1224 642960 Fax +44 1224 642962 > >> ======================================== > >> http://www.asylumweb.com > >> Email: steve@asylumweb.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/ > >> > > > > > > ------------------------------------------------------------- > > 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/ > > > > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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/ "Andrew Simpson"

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:

Counting files (1998) [Sum] function? (1997) Help name our technology! (1997) two of the same named db's open at once (1998) RequiredFields template (1997) WC2f3 (1997) Newbie questions (1999) email preferences on NT (1997) Opinion: [input] should be called [output] ... (1997) Bad suffix error (1997) access denied problem (1997) Automatic Download? (2003) Help name our technology! (1997) Databases (2000) FYI: virus alert (1996) Sort Order on a page search (1997) Hard Questions ? (1997) stripping extra spaces from form fields (2000) RequiredFields (2000) [sourcefile] (2001)