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 theno spaces example ;-)SMSI, which is correct ? both?Thanks,P.S., I restarted my mail server thus all the sudden posts (guess somethingwas stuck). sorry.DonovanMark 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:
eh, your right, they do have that example in the docs.. (along with theno spaces example ;-)SMSI, which is correct ? both?Thanks,P.S., I restarted my mail server thus all the sudden posts (guess somethingwas stuck). sorry.DonovanMark 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:
Lots of bounce errors (2007)
Just Testing (1997)
Frames and WebCat (1997)
RAM variables (1997)
What abobut variables named max ??? (2000)
What file? (1997)
Bug Report, maybe (1997)
StoreBuilder: cart is full (2003)
Error -108 (1997)
Pithy questions on webcommerce & siteedit (1997)
WebCatalog2 for NT Beta Request (1997)
Simple Database close connection (2001)
MacWEEK article help needed (1996)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
[WebDNA] WebPOP with godaddy account (2011)
IE-caching (1998)
Help! WebCat2 bug (Ben's input) (1997)
WebDNA Verison 4.5 will Not Restart! This SUCKS! (2002)
Applescript, WebDNA, and PDF (1997)
Mac Sever Web Hosting (1999)