[showif] problem

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22933
interpreted = N
texte = 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [showif] problem (Gil Poulsen 2009)
  2. [WebDNA] [showif] problem (Lawrence 2009)
  3. Re: [SHOWIF] PROBLEM (WebDNA Support 2000)
  4. [SHOWIF] PROBLEM (Natalie M. Rezonoff 2000)
  5. Re: [SHOWIF] PROBLEM (Nitai 2000)
  6. Re: [showif] problem (Kenneth Grome 1999)
  7. Re: [showif] problem (Gil Poulsen 1999)
  8. [showif] problem (Howard Wolosky 1999)
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 Howard Wolosky

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:

can webcat create directories on NT? (1997) Setting up WebCatalog with Retail Pro data (1996) Trouble with formula.db + more explanation (1997) [protect] on NT? (1997) List archive status? (1999) Bug Report, maybe (1997) Refreshing Javascript (2001) WebCat2b15MacPlugin - showing [math] (1997) How to Sort Summ data ? (1997) Re:2nd WebCatalog2 Feature Request (1996) setting line item numbers (1998) [WriteFile] problems (1997) Installing WebCatalog 4.5.1 (2004) totals (1997) [Summary] re: Emailer setup (1997) webcat NT (1998) can WC render sites out? (1997) syntax question, not in online refernce (1997) Same Table Opened Twice (2003) Limitations on fields? Server is crashing (1997)