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 Consulting23 Marco Polo CourtFranklin Park, NJ 08823-1703Voice: 609-359-0103http://altimac.com************************
Associated Messages, from the most recent to the oldest:
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 Consulting23 Marco Polo CourtFranklin Park, NJ 08823-1703Voice: 609-359-0103http://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:
WebCatalog Hosting (1996)
WebCatalog f2 Installation (1997)
Questions To Answer (1997)
Cart Question (1998)
Help need to figure this out today!!! Advanced Question. (2004)
carriage returns in data (1997)
E-Mail (1998)
Format question WC Mac f3 (1997)
Help name our technology! (1997)
NT 4.0/IIS WebCat Installation (1998)
webCatalog and Stocks (1998)
Secured Order Forms (1998)
WC1.6 to WC2 date formatting (1997)
Opinion: [input] should be called [output] ... (1997)
The IBC root beer has arrived! (1997)
Database changes (1998)
Country & Ship-to address & other fields ? (1997)
Combining search criteria (2000)
Question (2001)
WebCat2 as a chat server? (1997)