Math inside [showif]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16694
interpreted = N
texte = NOTE!If you want your math comparisons to work properly inside showif's, do NOT use the optional show=F parameter. When you do, it hides the value of XXX from the showif so the comparison doesn't work as expected. The first example doesn't work but the second one does:[showif [math show=F]XXX[/math]=1] Stuff to show when XXX=1 goes here... [/showif][showif [math]value[/math]=1] Stuff to show when XXX=1 goes here... [/showif]I don't remember seeing this behavior in versions previous to 2.1 or 2.1.1, but maybe I just missed it ...Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Math inside [showif] (Kenneth Grome 1998)
  2. Re: Math inside [showif] (Grant Hulbert 1998)
  3. Math inside [showif] (Kenneth Grome 1998)
NOTE!If you want your math comparisons to work properly inside showif's, do NOT use the optional show=F parameter. When you do, it hides the value of XXX from the showif so the comparison doesn't work as expected. The first example doesn't work but the second one does:[showif [math show=F]XXX[/math]=1] Stuff to show when XXX=1 goes here... [/showif][showif [math]value[/math]=1] Stuff to show when XXX=1 goes here... [/showif]I don't remember seeing this behavior in versions previous to 2.1 or 2.1.1, but maybe I just missed it ...Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

SiteEdit Pro Update Announcement (1997) Hosts who have upgraded to v5.0? (2003) syntax question, not in online refernce (1997) [UPPERCASE] (1997) unable to launch acgi in WebCat (1997) Signal Raised (1997) What port is Email on ? (2000) FW: WebDNA-Talk searchable? (1997) WML (2000) WebCat2final1 crashes (1997) URGENT: NO BUG, woFIELDdata & FIELDword=ww (2002) Dates - Search and Sorting (1999) Format all of a sudden doesn't work (1997) FEA REQ: One .hdr, multiple .db's (2003) Emailer help....! (1997) WC2b15 File Corruption (1997) Trouble with formula.db (1997) RE: 2nd WebCatalog2 Feature Request (1996) [shownext] and descending order (1997) Emailer [cart] file names (1997)