Re: [WebDNA] [showif] problem

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 101830
interpreted = N
texte = Hi, Lawrence. This is from the docs for [ShowIf]: ======== Tip: make sure neither side of the comparison equation contains any of the special comparison letters listed above. For example, [ShowIf I'm Friendly! Are you?=[question]] contains an exclamation point inside the sentence being compared, so WebDNA sees this as "I'm Friendly" is not equal to " Are you?=[question]", which is not what the author meant to compare. The solution is to wrap each side of the comparison with [URL] contexts, like this: [ShowIf [URL]I'm Friendly! Are you?[/URL]=[URL][question][/URL]]. This causes any embedded !=>< symbols to be converted to their URL equivalents, which can then be compared correctly. ======== Once in a thousand years or so a question is posted that I actually know the answer to ;-) On Jan 28, 2009, at 9:44 AM, Lawrence wrote: > Hello, > > I just have a problem I never noticed. > I use the "classical" showif , hideif to display a result depending > on what the field contains. > [showif [myfiled]=[blank]] RESULT[/showif] > This is absolutely simple, except that is the filed [myfiled] > contains the caracter "!", nothing will be displayed... > > Has any one had this problem? How can it be solved? > > Thanks > Lawrence > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > -- Gil Poulsen, Mac Wirehead ************************ AltiM@c Consulting 23 Marco Polo Court Franklin Park, NJ 08823-1703 Voice: 609-359-0103 http://altimac.com ************************ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [showif] problem (Gil Poulsen 2009)
  2. [WebDNA] [showif] problem (Lawrence 2009)
Hi, Lawrence. This is from the docs for [showif]: ======== Tip: make sure neither side of the comparison equation contains any of the special comparison letters listed above. For example, [ShowIf I'm Friendly! Are you?=[question]] contains an exclamation point inside the sentence being compared, so WebDNA sees this as "I'm Friendly" is not equal to " Are you?=[question]", which is not what the author meant to compare. The solution is to wrap each side of the comparison with [url] contexts, like this: [ShowIf [url]I'm Friendly! Are you?[/URL]=[url][question][/URL]]. This causes any embedded !=>< symbols to be converted to their URL equivalents, which can then be compared correctly. ======== Once in a thousand years or so a question is posted that I actually know the answer to ;-) On Jan 28, 2009, at 9:44 AM, Lawrence wrote: > Hello, > > I just have a problem I never noticed. > I use the "classical" showif , hideif to display a result depending > on what the field contains. > [showif [myfiled]=[blank]] RESULT[/showif] > This is absolutely simple, except that is the filed [myfiled] > contains the caracter "!", nothing will be displayed... > > Has any one had this problem? How can it be solved? > > Thanks > Lawrence > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > -- Gil Poulsen, Mac Wirehead ************************ AltiM@c Consulting 23 Marco Polo Court Franklin Park, NJ 08823-1703 Voice: 609-359-0103 http://altimac.com ************************ Gil Poulsen

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:

Next X hits (1996) HTML encoding in URLs (1997) Erotic Sites (1997) Need Sample Template - just purchased (1997) [WebDNA] Formulas question (2011) [OT] Helllllooooooo.... (2002) RE: Web*SSL and WebCatalog (1997) where to put code (1998) WCf2 and nested tags (1997) ANother SHOWIF problem (1997) Validation (2000) taxTotal (1997) Something about defining variables (1998) LineItem variable set (2007) Multiple Merchant Accounts? (1997) Emailer (1997) WebCatalog dying in NT (1998) minimalist shopping cart. (1997) WebCatalog Plugin: Getting Data Canceled (2000) For those of you not on the WebCatalog Beta... (1997)