Re: [WebDNA] Math sum

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110489
interpreted = N
texte = On 2013-07-03, at 5:24 PM, george r wrote: > Hi All, >=20 > I want to display a score value that simply adds the sum of the = following: >=20 > [math][showif [varA]=3DYes]2[/showif][showif = [varB]=3DYes]2[/showif][showif [varC]=3DYes]2[/showif][math] >=20 > Adding the + both in the showif and in between them makes it fail if = one of the var is not yes. >=20 > Suggestions? >=20 > Thanks=20 > ~G try: [math]0[showif [varA]=3DYes]+2[/showif][showif = [varB]=3DYes]+2[/showif][showif [varC]=3DYes]+2[/showif][math] or that does not work, then please tell me what your browser shows for = this (at that spot) : |math|0[showif [varA]=3DYes]+2[/showif][showif = [varB]=3DYes]+2[/showif][showif [varC]=3DYes]+2[/showif]|math| -Govinda= Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Math sum (John Butler 2013)
  2. [WebDNA] Math sum (george r 2013)
On 2013-07-03, at 5:24 PM, george r wrote: > Hi All, >=20 > I want to display a score value that simply adds the sum of the = following: >=20 > [math][showif [varA]=3DYes]2[/showif][showif = [varB]=3DYes]2[/showif][showif [varC]=3DYes]2[/showif][math] >=20 > Adding the + both in the showif and in between them makes it fail if = one of the var is not yes. >=20 > Suggestions? >=20 > Thanks=20 > ~G try: [math]0[showif [varA]=3DYes]+2[/showif][showif = [varB]=3DYes]+2[/showif][showif [varC]=3DYes]+2[/showif][math] or that does not work, then please tell me what your browser shows for = this (at that spot) : |math|0[showif [varA]=3DYes]+2[/showif][showif = [varB]=3DYes]+2[/showif][showif [varC]=3DYes]+2[/showif]|math| -Govinda= John Butler

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:

remotely add + sign (1997) RE: Unexceling (was I need a smart quote...) (1999) Requiring that certain fields be completed (1997) PCS Frames (1997) Error:Too many nested [xxx] contexts (1997) t or f (1997) Founditems context returning only 1 item (1997) Exclamation point (1997) Using [showif] within [lineitems] (2000) WebCat2 beta 11 - new prefs ... (1997) RE: Emailer prefs in two places ... (1997) Emailer problem (1998) Fun with dates (1997) This list needs a digest: rant, rave... (1997) Merry Christmas (2003) Archives... (1997) Word search (1997) [WebDNA] FCGI vs Server Version (2018) Bug? (1997) Installer needed (2004)