What's wrong with this?

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62292
interpreted = N
texte = [text show=f]myURL=[AD_WEBLINK][/text] [if (("[AD_WEBLINK]" ^ "http") | ("[AD_WEBLINK]" ^ "mailto"))] [then][!]do nothing[/!][/then] [else][text show=f]myURL=http://[myURL][/text][/else] [/if] If [AD_WEBLINK] is certain to only contain alphanumerics and a period or two and possibly one an only one @ in the case of a mailto... then why does this comparison always execute the "else" clause? I'm sure it's something simple that is staring me right in the face. ------------------------------------------------------------- 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: What's wrong with this? ( Donovan Brooke 2005)
  2. Re: What's wrong with this? ( Stuart Tremain 2005)
  3. Re: What's wrong with this? ( Stuart Tremain 2005)
  4. What's wrong with this? ( Joe D'Andrea 2005)
[text show=f]myURL=[AD_WEBLINK][/text] [if (("[AD_WEBLINK]" ^ "http") | ("[AD_WEBLINK]" ^ "mailto"))] [then][!]do nothing[/!][/then] [else][text show=f]myURL=http://[myURL][/text][/else] [/if] If [AD_WEBLINK] is certain to only contain alphanumerics and a period or two and possibly one an only one @ in the case of a mailto... then why does this comparison always execute the "else" clause? I'm sure it's something simple that is staring me right in the face. ------------------------------------------------------------- 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/ Joe D'Andrea

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:

Forcing a NEWCART (1997) WebDNA 6.0 backwards compatible? (2004) POST Datamissing? (1998) [DOS]/DOS query - ANOTHER SOLUTION (2003) Almost a there but..bye bye NetCloak (1997) if else problem (2003) PIXO support (1997) Page Breaks in Word (2003) RE: is sku a REQUIRED field on NT (1997) I've been framed by webcatalog! Does anyone know the way out? (2000) Just a thought (1998) 2.1b3 --> way slow (1997) Email troubles (2005) Re:Virtual hosting and webcatNT (1997) searches with dash, period etc. (2000) WebCat b13 CGI -shownext- (1997) [WebDNA] grep again (2010) Individual Tax on Items (1998) international time (1997) passing search criteria (1997)