Re: [if] and [showif] - A solution

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45242
interpreted = N
texte = The online docs for the [if][then][else] tag, uses these examples: [If [browsername] ^ Mozilla] and [If Hello ^ hell]It doesn't seem to make a difference, and I normally use the regular way without spaces, but to troubleshoot the problem, I thought I'd better use the syntax in the SM examples.on 13/11/02 10:32 pm, Donovan at dbrooke@ehg.net wrote:> because quotes are used in an if statement to signify a text comparison. > > Also, I noticed in your if statement that you have spaces before and > after the ^. This > may work for you but it is not the documented syntax (ie. no spaces) > thus I wouldn't trust it. > (I posted this with my other address but it doesn't seem to be working > right now :-( My > appologeeeeeez if this thread gets dup's from me. > > Donovan > > > > Mark Derrick wrote: > >> Bizarrely, the retrieved data didn't contain quotations, although it did >> contain a couple of hashes right at the end, which I assume may have caused >> the problem. >> >> What confuses me though, is why [if[ was bothered about it, yet [showif] >> wasn't >> >> on 13/11/02 4:38 pm, John Peacock at jpeacock@rowman.com wrote: >> >> >> >>> Mark Derrick wrote: >>> >>> >>> >>>> Not sure why [if] requires the variable to be wrapped in [url], but this >>>> seems to now work. >>>> >>>> >>>> >>> Because the content you were retrieving contained quotation marks. You must >>> use >>> [url] any time some portion of your imput might contain characters which >>> will >>> confuse the WebDNA parser. >>> >>> John >>> >>> >> ------------------------------------------------------------- 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: [if] and [showif] - A solution (Brian Fries 2002)
  2. Re: [if] and [showif] - A solution (Donovan Brooke 2002)
  3. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  4. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  5. Re: [if] and [showif] - A solution (Rob Marquardt 2002)
  6. Re: [if] and [showif] - A solution (Donovan 2002)
  7. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  8. Re: [if] and [showif] - A solution (John Peacock 2002)
  9. Re: [if] and [showif] - A solution (Grant Hulbert 2002)
  10. Re: [if] and [showif] - A solution (Mark Derrick 2002)
The online docs for the [if][then][else] tag, uses these examples: [If [browsername] ^ Mozilla] and [If Hello ^ hell]It doesn't seem to make a difference, and I normally use the regular way without spaces, but to troubleshoot the problem, I thought I'd better use the syntax in the SM examples.on 13/11/02 10:32 pm, Donovan at dbrooke@ehg.net wrote:> because quotes are used in an if statement to signify a text comparison. > > Also, I noticed in your if statement that you have spaces before and > after the ^. This > may work for you but it is not the documented syntax (ie. no spaces) > thus I wouldn't trust it. > (I posted this with my other address but it doesn't seem to be working > right now :-( My > appologeeeeeez if this thread gets dup's from me. > > Donovan > > > > Mark Derrick wrote: > >> Bizarrely, the retrieved data didn't contain quotations, although it did >> contain a couple of hashes right at the end, which I assume may have caused >> the problem. >> >> What confuses me though, is why [if[ was bothered about it, yet [showif] >> wasn't >> >> on 13/11/02 4:38 pm, John Peacock at jpeacock@rowman.com wrote: >> >> >> >>> Mark Derrick wrote: >>> >>> >>> >>>> Not sure why [if] requires the variable to be wrapped in [url], but this >>>> seems to now work. >>>> >>>> >>>> >>> Because the content you were retrieving contained quotation marks. You must >>> use >>> [url] any time some portion of your imput might contain characters which >>> will >>> confuse the WebDNA parser. >>> >>> John >>> >>> >> ------------------------------------------------------------- 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/ Mark Derrick

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:

Re2: Calculating multiple shipping... (1997) Custom formulas.db (1998) RE: Cookie Question (1999) WebDNA 5.0 freeBSD?!!? (2003) Protect vs Authenicate (1997) Passing values - never mind (1999) Web DNA Central Lives (2000) ShowNext (1997) F2 to F3 rocky transition (1997) Reminder... (2003) [protect] on NT? (1997) Simple way to create unique SKU (1997) RE: Upload (1998) WebCat2 several catalogs? (1997) calculating tax rates, mail order solutions and version 2 (1997) Problems passing [SKU] with $Replace in 2.0 (1997) $Quit, $CloseDatabase corrections (1997) IE drops support (2004) Showif, Hideif reverse logic ? (1997) SQL Support in 6.0 (2004)