Re: math with multiple [founditems]

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23745
interpreted = N
texte = >I have a search that returns mulitple entries from one field (all >numbers) and I'd like to add all those values together. I was thinking >something like this: > >[founditems][math][fieldname]+[/math][/founditems] > >but of course this doesn't work. How could I make this work? > >Thanks >Brant > > > >You could use something like this:New for 3.0: note that you do not have to use the [Math] context to display a math variable later in the page; you may simply put the variable name inside brackets like so: [varname]. Both [Math]varname[/Math] and [varname] will display the same thing. So you could do something like:[Math show=F]Total=0[/Math] [Math show=F]Var1=0[/Math] [Math show=F]Var2=0[/Math] . . . [FoundItems] [Math show=F]Var1=[fieldname][/Math] [/FoundItems] . . . [FoundItems] [Math show=F]Var2=[anotherfieldname][/Math] [/FoundItems] . . . [Math show=F]Total=[Var1]+[Var2][/Math] . . . Your total is: [total] . . . . etc...-- _______________________________________________________________ Charles Kline ckline@macsultants.com WebMaster - eCommerce SpecialistMacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 Associated Messages, from the most recent to the oldest:

    
  1. Re: math with multiple [founditems] (Kenneth Grome 1999)
  2. Re: math with multiple [founditems] (es-sleestak 1999)
  3. Re: math with multiple [founditems] (es-sleestak 1999)
  4. Re: math with multiple [founditems] (Kenneth Grome 1999)
  5. Re: math with multiple [founditems] (PCS Technical Support 1999)
  6. Re: math with multiple [founditems] (es-sleestak 1999)
  7. Re: math with multiple [founditems] (Howard Wolosky 1999)
  8. Re: math with multiple [founditems] (charles kline 1999)
  9. math with multiple [founditems] (es-sleestak 1999)
>I have a search that returns mulitple entries from one field (all >numbers) and I'd like to add all those values together. I was thinking >something like this: > >[founditems][math][fieldname]+[/math][/founditems] > >but of course this doesn't work. How could I make this work? > >Thanks >Brant > > > >You could use something like this:New for 3.0: note that you do not have to use the [math] context to display a math variable later in the page; you may simply put the variable name inside brackets like so: [varname]. Both [math]varname[/Math] and [varname] will display the same thing. So you could do something like:[Math show=F]Total=0[/Math] [Math show=F]Var1=0[/Math] [Math show=F]Var2=0[/Math] . . . [founditems] [Math show=F]Var1=[fieldname][/Math] [/FoundItems] . . . [founditems] [Math show=F]Var2=[anotherfieldname][/Math] [/FoundItems] . . . [Math show=F]Total=[Var1]+[Var2][/Math] . . . Your total is: [total] . . . . etc...-- _______________________________________________________________ Charles Kline ckline@macsultants.com WebMaster - eCommerce SpecialistMacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 charles kline

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:

WebCat2 several catalogs? (1997) Cookies and domains (2006) Webcatalog and IIS4b2 (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [ShowIf] if the varieable exists (1998) Nested tags count question (1997) I'm new be kind (1997) Permission Denied Error (2001) [WebDNA] Gulf Coast WebDNA programmers (2010) Uploading out of FMP (2001) [WebDNA] [table] and COMMA in a Field (2015) raw=T is broken in [include] (1997) WCS Newbie question (1997) WebSTAR plugin update (2004) Custom WebCat Prefs ... (1997) HELP!!! (1998) WC Database Format (1997) Document Contains No Data! (1997) Resume Catalog ? (1997) [REPLACE] problems (2001)