Re: Am I being really stupid?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53168
interpreted = N
texte = well, i personally have never used a "^" in an if statement but according tothe docs you are doing it perfectly so thats probably not the problem... ifit is going straight to the else then [DomainDetails] must not contain "Nomatch for"...output [DomainDetails] to the screen and see what it contains... rememberingthat ^ is an exact substring search so something like "there is no match inthe database for" will not trigger the then...hth.----- Original Message ----- From: "Steve Craig"
To: "WebDNA Talk" Sent: Monday, September 29, 2003 11:27 PMSubject: 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 wordsare> 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/
Associated Messages, from the most recent to the oldest:
well, i personally have never used a "^" in an if statement but according tothe docs you are doing it perfectly so thats probably not the problem... ifit is going straight to the else then [DomainDetails] must not contain "Nomatch for"...output [DomainDetails] to the screen and see what it contains... rememberingthat ^ is an exact substring search so something like "there is no match inthe database for" will not trigger the then...hth.----- Original Message ----- From: "Steve Craig" To: "WebDNA Talk" Sent: Monday, September 29, 2003 11:27 PMSubject: 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 wordsare> 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/
"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:
Trouble with formula.db (1997)
[WebDNA] IP > Network Calculator (2015)
RAM variables (1997)
username's and passwords in uppercase vs lowercase vs mix. (2000)
Quit revisited (1997)
Help Please WebDNA 6 Secure Forms Problem (2004)
Resume Catalog ? (1997)
Not really WebCat (1997)
Only charge card when product shipped ? (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
Shipping formula problem (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
[WriteFile] problems (1997)
RE: problem with applets embedded in tpl files (1997)
[showif]/[hideif] question (1997)
Searching multiple Databases (1997)
WebCat2: Items xx to xx shown, etc. (1997)
[WebDNA] Version 7.x: webdna.ini and EmailerPrefs (2012)
[OT] Indexing of dynamic web sites (2003)
[WriteFile] problems (1997)