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

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45244
interpreted = N
texte = eh, your right, they do have that example in the docs.. (along with the no spaces example ;-)SMSI, which is correct ? both?Thanks, P.S., I restarted my mail server thus all the sudden posts (guess something was stuck). sorry.Donovan Mark Derrick wrote:> 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/ ------------------------------------------------------------- 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)
eh, your right, they do have that example in the docs.. (along with the no spaces example ;-)SMSI, which is correct ? both?Thanks, P.S., I restarted my mail server thus all the sudden posts (guess something was stuck). sorry.Donovan Mark Derrick wrote:> 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/ ------------------------------------------------------------- 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/ Donovan Brooke

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:

[Fwd: F3 database munching] (1997) sorting and summarizing (1998) WebCat2: multiple currency support (1997) unsubscribe (1997) WebDNA won't start on reboot (2003) [SearchString] usage (1997) RAM variables (1997) Rotating photo gallery (2004) Calculating Shipping charges for multiple items andqtys > 1 (1997) creating an email message (1998) Appending Information from one db to another (1998) pc (1997) Help! WebCat2 bug (1997) [isfile] ? (1997) An Isnumeric function of some kind (2001) Why doesn't it change? (1998) Suggestions (1998) WebDNA 4.5 upgrade? (2002) Small problem (2001) Separate SSL Server (1997)