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:
flushdatabases (2000)
Searching (1998)
Running 2 two WebCatalog.acgi's (1996)
Number of Line Items (1998)
Searchable WebCat (etc.) Docs ? (1997)
PIXO support (1997)
Q: for those who use Cookies for sessions? (2004)
removing programming logic white space (2003)
[isfolder] and [filename] (1997)
Questions To Answer (1997)
Summing fields (1997)
Error Log.db --however (1997)
Dubble Sku's in a Database (1999)
[WebDNA] Converting Excel spreadsheets to CSV for use in WebDNA (2016)
triggers (2003)
[WebDNA] ONLY the FIRST continuous run of numeric chars? (2008)
RE: PIXO support (1997)
Seeking Better Display of results... (1997)
Adding Multiple files to a cart at once (1998)
Help on how to store calculated value (2002)