numero = 22934
interpreted = N
texte = Howard, this is from the online docs:Tip: make sure neither side of the comparison equation contains any ofthe specialcomparison letters listed above. For example, [ShowIf I'm Friendly! Areyou?=[question]] contains an exclamation point inside the sentence beingcompared, soWebCatalog sees this as I'm Friendly is not equal to Areyou?=[question], whichis 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 causesany embedded !=>< symbols to be converted to their URL equivalents,which can thenbe compared correctly. Howard Wolosky wrote:> Here's the problem:> > I have a showif statement with the following:> [showif [_body]=]> [math show=f]ERROR=1[/math]> [/showif]> > this comes from a page with a text input of> > > Now, I just want to set the error if the body is blank. However, if> someone enters an exclamation point (!) (or probably any other comparsion> operator) it sets error to 1.> > I'm figuring that webcat is substituting the text into the showif statement> first, then it looks at the comaprsion statement,> e.g. if _body=Wow!This is cool> then the showif statement after replacing [_body] would read> [showif Wow!This is cool=]> .....> [/showif]> and since Wow does not equal This is cool= it sets error to be 1.> > I don't want this to happen. Anyone have a similar problem or a solution> for it?> > Any help would be appreciated.> > Howard Wolosky> ============> > Lead Programmer / Webmaster> www.willitwork.com> Will It Work presented by Lab 2K> -The World's Largest Year 2000> Compliance Search Engine-- Gil Poulsen, Webmaster*************************************************************** AltiM@c * Phone: (908) 222-9001 ** 111 Mali Drive * FAX: (908) 222-9002 ** North Plainfield, NJ * e-mail: help@altimac.com ** 07062-2355 * WWW: http://www.altimac.com ***************************************************************
Associated Messages, from the most recent to the oldest:
Howard, this is from the online docs:Tip: make sure neither side of the comparison equation contains any ofthe specialcomparison letters listed above. For example, [ShowIf I'm Friendly! Areyou?=[question]] contains an exclamation point inside the sentence beingcompared, soWebCatalog sees this as I'm Friendly is not equal to Areyou?=[question], whichis 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 causesany embedded !=>< symbols to be converted to their URL equivalents,which can thenbe compared correctly. Howard Wolosky wrote:> Here's the problem:> > I have a showif statement with the following:> [showif [_body]=]> [math show=f]ERROR=1[/math]> [/showif]> > this comes from a page with a text input of> > > Now, I just want to set the error if the body is blank. However, if> someone enters an exclamation point (!) (or probably any other comparsion> operator) it sets error to 1.> > I'm figuring that webcat is substituting the text into the showif statement> first, then it looks at the comaprsion statement,> e.g. if _body=Wow!This is cool> then the showif statement after replacing [_body] would read> [showif Wow!This is cool=]> .....> [/showif]> and since Wow does not equal This is cool= it sets error to be 1.> > I don't want this to happen. Anyone have a similar problem or a solution> for it?> > Any help would be appreciated.> > Howard Wolosky> ============> > Lead Programmer / Webmaster> www.willitwork.com> Will It Work presented by Lab 2K> -The World's Largest Year 2000> Compliance Search Engine-- Gil Poulsen, Webmaster*************************************************************** AltiM@c * Phone: (908) 222-9001 ** 111 Mali Drive * FAX: (908) 222-9002 ** North Plainfield, NJ * e-mail: help@altimac.com ** 07062-2355 * WWW: http://www.altimac.com ***************************************************************
Gil Poulsen
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...