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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://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)